commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] [bugs #9927] Make HTTP requests more standards-compliant


From: Michael Koch
Subject: [commit-cp] [bugs #9927] Make HTTP requests more standards-compliant
Date: Wed, 01 Dec 2004 07:56:50 -0500
User-agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux; X11; i686; de, address@hidden) (KHTML, like Gecko)

This mail is an automated notification from the bugs tracker
 of the project: classpath.

/**************************************************************************/
[bugs #9927] Latest Modifications:

Changes by: 
                Michael Koch <address@hidden>
'Date: 
                Mit 01.12.2004 at 12:50 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
The merging of the new HTTP protocol implemention from GNU inetleib fixed this 
problem. It's commmited to CVS and will be fixed in GNU classpath 0.13.






/**************************************************************************/
[bugs #9927] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9927>
Project: classpath
Submitted by: 0
On: Son 08.08.2004 at 14:05

Category:  None
Severity:  5 - Average
Resolution:  Fixed
Privacy:  Public
Assigned to:  None
Status:  Closed
Platform Version:  None


Summary:  Make HTTP requests more standards-compliant

Original Submission:  A HTTP URLConnection sends headers with some lower-case 
letters instead of upper case letters. We should use the same spelling as in 
RFC 2616.

In gnu/java/net/protocol/http/Connection.java, this should be changed:

"user-agent" -> "User-Agent"
"accept" -> "Accept"
"Content-type" -> "Content-Type"
"Content-length" -> "Content-Length"


You may say that this is not important, but look at this code:

URLConnection u = ...;
u.setRequestProperty("User-Agent", "MyAgent/1.0");

This works with Sun's class library. With Classpath, these two headers are in 
the same request:

User-Agent: MyAgent/1.0
user-agent: gnu-libgcj/3.4.0 20040316 (prerelease)


Follow-up Comments
------------------


-------------------------------------------------------
Date: Mit 01.12.2004 at 12:50       By: Michael Koch <mkoch>
The merging of the new HTTP protocol implemention from GNU inetleib fixed this 
problem. It's commmited to CVS and will be fixed in GNU classpath 0.13.






File Attachments
-------------------

-------------------------------------------------------
Date: Son 08.08.2004 at 14:05  Name: Patch.diff  Size: 1,53KB   By: None
Suggested Patch
http://savannah.gnu.org/bugs/download.php?item_id=9927&amp;item_file_id=1570






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9927>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

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