Sending a file and variables to a web server

Topics: Developer Forum, User Forum
Jun 24 at 10:22 PM
Hi,

I need to send a text/xml file and some variables to a web server page.

I use winhttp object in vfp to post this data to my avfp script page.

On server side (avfp script), the file is trimmed to a certain number of characters via oResponse.Form("myxmlfile").

How can I receive a large text file with at web server ?

Where can I find code example ?

Thanks
Jul 9 at 8:18 PM
Solved.

I have already done this by reading xml file using XmlDoc = CREATEOBJECT("Microsoft.XMLDOM") at server side script file. But want to know why am I not getting xml file via oRequest.Form('xmlFile') ?

The xml file was truncated due to "&" character in xml file. The variables in http post data were concatenated by & character. I passed the xml data by converting it to strconv(xmlfile,15) and i am getting full xml file at server side.