bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/28661] New: HTTP Header differs b/w java and classpath


From: minack at l3s dot de
Subject: [Bug classpath/28661] New: HTTP Header differs b/w java and classpath
Date: 9 Aug 2006 13:53:29 -0000

Using a HttpURLConnection object the created HTTP 
Header for an POST request differs. Java provides the 
content type "application/x-www-form-urlencoded" by 
default, Classpath does not, which causes a java library I 
am using to fail sending the request:

result for java:
 POST / HTTP/1.1
 Cache-Control: no-cache
 Pragma: no-cache
 User-Agent: Java/1.5.0_06
 Host: localhost:1234
 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
 Connection: keep-alive
 Content-type: application/x-www-form-urlencoded
 Content-Length: 9

 some=data


result for classpath:
 POST / HTTP/1.1
 Host: localhost:1234
 User-Agent: gnu-classpath/0.91 (IKVM.NET/0.28.0.0)
 Connection: keep-alive
 Accept-Encoding: chunked;q=1.0, gzip;q=0.9, deflate;q=0.8, identity;q=0.6,
*;q=0
 Content-Length: 9

 some=data


Manually modifying the library to explicitly set this 
content type works, though similar behaviour would be 
desireable.

Enrico Minack


-- 
           Summary: HTTP Header differs b/w java and classpath
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: minack at l3s dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28661





reply via email to

[Prev in Thread] Current Thread [Next in Thread]