Incorrect (?) HTTP header when no post data is used


Hi Jules,

When there is no POST data , createRequestHeader should not write the “Content-Length: 0” field. I don’t really understand why, but some webservers just send an empty response when they get such a request header.

edit: maybe it should be written only when ‘isPost’ is true, I’m not sure that Content-length: is allowed for GET requests.