# Send XML request file to ASP page

**URL:** <https://forum.kirupa.com/t/send-xml-request-file-to-asp-page/206988>\
**Category:** programming\
**Created:** [November 13, 2006, 8:42pm UTC](https://forum.kirupa.com/t/send-xml-request-file-to-asp-page/206988 "2006-11-13T20:42:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DHDesign](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DHDesign](https://forum.kirupa.com/u/DHDesign)\
**Post date:** [November 13, 2006, 8:42pm UTC](https://forum.kirupa.com/t/send-xml-request-file-to-asp-page/206988/1 "2006-11-13T20:42:27Z")

</div>

This is the first time I’m doing this, so bare with me (hope I don’t sound stupid):

I need to transmit an XML request to an ASP page for that page to kick back an XML answer. The file (REQLTR.XML) needs to be submitted to [http://www.test.com/getxml.asp](http://www.test.com/getxml.asp) and should return back a ANSWER.XML file.

After asking the company which is receiving the XML file about how to do this, their response was:

**We use VB5 to post XML via: Inet1.Execute "** [**http://www.test.com/getxml.asp**](http://www.test.com/getxml.asp) **" & “”, “POST”, sXML & ""**

I don’t have VB5 and nor do I understand the above. Is there another way of doing this something? I am lost.

ps - I tried one method without success: I created a form with an upload input…and just did this:

```auto

<form action="http://www.test.com/getxml.asp" method="post" name="TRNXML" enctype="multipart/form-data">
File name: <input name="ourxml" type="file">
<input type="submit">
</form>

```

This did not work as the company responded saying that they got the following:

[FONT=Courier New]\*\*[COLOR=#ff0000]Invalid at the top level of the document.

[/COLOR]\*\*-----------------------------7d6093002016  
Content-Disposition: form-data; name=“ourxml”; filename=“C:\Documents and Settings\IT\Desktop\REQLTR.xml”  
Content-Type: text/xml[/FONT]
