dcsimg
"Transfer-Encoding: chunked" added to http request header automatically
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   hong_han
Posted On:   Monday, September 24, 2001 06:33 PM

the http client of j2mewtk automatically adds "Transfer-Encoding: chunked" header field and chunk size to the outgoing http request, and it would cause problem since the chunked transferring is forbidden on some servers. Is there a way to disable chunked transferring in j2me or is there a way to set the http version to 1.0 in j2me?

Re: "Transfer-Encoding: chunked" added to http request header automatically

Posted By:   Eddy_Chang  
Posted On:   Thursday, September 27, 2001 07:45 PM

you don't execute the flush(),so "Transfer-Encoding: chunked" wouldn't be added into the http header.

The data will be flushed automatically,when the openinputstream() is called.

Remember to add the Content-type= application/x-www-form-urlencoded into the http header.Otehrwise the server doesn't know it is a POST http request
About | Sitemap | Contact