Problem with pub.client.http

Hi

there is a string,it includes 3 parts A?B and C. A is XML.it use ‘&’ separate them.
now I use pub.client.http to post this string to a remote server,and it returns Internal Server Error and code 500.but when I use firefox’s http tools post this string,it returns 200,OK.
Does anyone encounter this problem and how to fix?tks

Regards
Ralen

That depends on what kind of server you are posting to, and how it handles the request, check for detailed error on the server side.

Most likely it’s due to the Content-Type settings for HTTP header.

you can try to set:
Content-Type = text/xml
under headers when calling pub.client:http