ctakahashi / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

PUT adds an unwanted "Expect:100-continue" header #129

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Setup a put to a server (in my case a WebDAV server) without an "Expect" 
header
2. Execute the PUT while watching with wireshark or other packet sniffer.

What is the expected output? What do you see instead?
I expect there to be a transmission of a request without an "Expect" header, 
and if the server and request are setup correctly then it to return a 
201-Created code.  Instead I see a request in wireshark with an 
"Expect:201-continue" header and the request fails with "417 Expectation 
Failed".

What version of the product are you using? On what operating system?
2.3.3 on Windows 7 64-bit, this is Java, so I don't think it matters much.

Please provide any additional information below.
FYI, this works with the Firefox REST client plugin.  Also, I have a 
specialized client I'm writing with HttpClient 4.0.1 and it did not include an 
"Expect" header unless I added it so this must be something in the Google REST 
client codebase.

Original issue reported on code.google.com by eeda...@gmail.com on 23 Mar 2011 at 6:27

GoogleCodeExporter commented 8 years ago
Thanks for reporting the issue. Let me look into it.

Original comment by subwiz on 26 Mar 2011 at 12:41

GoogleCodeExporter commented 8 years ago
I tried a PUT request with the RESTClient inbuilt Trace Server. There was no 
additional header added.

The latest development version of RESTClient is available here:

http://dl.dropbox.com/u/2505020/restclient-ui-2.4-SNAPSHOT-jar-with-dependencies
.jar

Try this version and see if you face the same issue. If yes, I will need more 
info for debugging from my side:

In this version, in the Request Tab you will find the option ''Follow HTTP 
Redirects?''. Uncheck this option, make the request and save the req-res 
archive and attach to this issue. 

Original comment by subwiz on 26 Mar 2011 at 1:07

GoogleCodeExporter commented 8 years ago
Hi, I'm facing the same Problem with version 2.3.3. 
The above link to download Version 2.4. is not working. 

Original comment by bernd.ki...@gmail.com on 3 Nov 2011 at 11:16

GoogleCodeExporter commented 8 years ago
Please try the above link now:

http://dl.dropbox.com/u/2505020/restclient-ui-2.4-SNAPSHOT-jar-with-dependencies
.jar

Original comment by subwiz on 3 Nov 2011 at 4:21

GoogleCodeExporter commented 8 years ago
Closing the issue as no follow up message has been posted.

Also I verified this in v2.5, and seems to be working fine.

Original comment by subwiz on 9 Jul 2012 at 2:55