W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2001

missing POST body

From: Wang, Xinju <Xinju.Wang@ugs.com>
Date: Mon, 19 Nov 2001 15:06:07 -0600
Message-ID: <07E98776DFF1BE448D9C9BA60A79ADA49F96A6@amwntx1.ugsolutions.com>
To: www-lib@w3.org
Should the entity body of a POST request be embedded in the request? For
example, when I do a:

post.exe http://localhost:8080/myservlet "test data"

Should I expect a POST request like this?

POST /test.html HTTP/1.1 
Accept: */*;q=0.3 
Accept-Encoding: deflate 
TE: trailers,deflate 
Expect: 100-continue 
Host: localhost:8080 
User-Agent: libwww-POST/1.0 libwww/5.3.1 
Connection: TE,Keep-Alive 
Date: Mon, 19 Nov 2001 20:44:39 GMT 
Content-Length: 9
Content-Type: text/plain  

test data

But the body of this POST request (marked by ^^^'s) is always missing. And I
can never get the post body on the server side. I tried post.exe,
postform.exe and comline.exe samples come with libwww 5.3.2. Another weird
thing is the content_length is correct.

Any help would be highly appreciated.
Received on Monday, 19 November 2001 16:07:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:54 UTC