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: anonymous
Subject: [commit-cp] [bugs #9927] Make HTTP requests more standards-compliant
Date: Sun, 08 Aug 2004 10:09:39 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.2) Gecko/20040803

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




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

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9927>
Project: classpath
Submitted by: 0
On: Sun 08/08/2004 at 10:05

Category:  None
Severity:  5 - Average
Resolution:  None
Assigned to:  None
Status:  Open
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)






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

-------------------------------------------------------
Date: Sun 08/08/2004 at 10: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]