Results 1 to 7 of 7
Thread: HttpClient invalid headers
- 03-29-2009, 09:23 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
HttpClient invalid headers
Ok, here's the deal... I'm trying to open a page using Apache HttpClient, but it's throwing an exception:
I can open the page just fine using URLConnection, but HttpClient can't parse the headers.Java Code:Caused by: org.apache.http.ProtocolException: Invalid header: Content-Length 932
Any ideas on how to suppress it / get around it?
- 03-30-2009, 12:23 AM #2
There's supposed to be a colon after Content-Length isn't there?
- 03-30-2009, 12:30 AM #3
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
Yep, there should be.
- 03-30-2009, 12:39 AM #4
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
It was a simple request so I was able to replace it with URLConnection, but for some even URLConnection doesn't always fire.
- 03-30-2009, 01:29 AM #5
Member
- Join Date
- Mar 2009
- Posts
- 10
- Rep Power
- 0
for me its also doesn't fire
- 03-30-2009, 08:26 PM #6
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
If the site does not conform to HTTP, and you are required to support that nonconforming site, then you must connect with plain old sockets and write your own interface.
- 03-31-2009, 12:36 AM #7
Similar Threads
-
Scrolling and Headers in a scroll pane
By glhansen in forum AWT / SwingReplies: 10Last Post: 04-03-2009, 02:06 AM -
Getting httpclient working with eclipse.
By int80 in forum EclipseReplies: 4Last Post: 03-31-2009, 01:17 PM -
[SOLVED] Putting HttpClient and dependencies on classpath
By dan0 in forum EclipseReplies: 1Last Post: 03-13-2009, 09:10 PM -
tooltips for JTable column headers
By fossildoc in forum AWT / SwingReplies: 2Last Post: 12-18-2008, 11:42 AM -
Invalid Argument error in IE7
By Kaviurs in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 07-01-2008, 09:12 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks