Hi,

I need to post the data using XMLHttpRequest. While posting, few values have to be passed in the URL like http://site.com?var1=value1&var2=value2 and few values have to be sent as form data.

Please suggest how to construct the required headers and message format to post the data in this format using XMLHttpRequest in VB Script.

If I try to set the URL as http://site.com?var1=value1&var2=value2 for the open method of XMLHttpRequest and the other values related form data by specifying content-disposition and the name of the variable and trying to send the data, looks like the variable values passed in the URL doesn't seem to be recognized by the target server.

Thanks in advance,

Raghu