Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


HTTP POST to URL

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,58344
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> HTTP POST to URL
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 HTTP POST to URL - 3/23/2008 9:38:06 PM   
  foane

 

Posts: 2
Score: 0
Joined: 2/19/2008
Status: offline
I've got an XML file which I must post to an URL.

I don't know how to do it.

Could anyone help or tell me where I can find an example?

Regards
Stefaan
 
 
Post #: 1
 
 RE: HTTP POST to URL - 3/24/2008 2:58:29 AM   
  dm_4ever


Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Try searching for XMLHTTP to see if maybe that would allow you to do this.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to foane)
 
 
Post #: 2
 
 RE: HTTP POST to URL - 3/24/2008 7:35:38 AM   
  foane

 

Posts: 2
Score: 0
Joined: 2/19/2008
Status: offline
this is the code I use:

Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
xmlhttp.open "POST" ,"http://xxx.xxx.xxx",False
Set xmldom = CreateObject("MSXML2.DOMDocument.4.0")
xmldom.async = False
xmldom.Load("C:\vlan.xml")
xmlhttp.send xmldom.xml
response.write xmlhttp.responseText

this is the answer I get back:

Premature end of file.

Could anyone help me ?

(in reply to foane)
 
 
Post #: 3
 
 RE: HTTP POST to URL - 3/24/2008 12:37:20 PM   
  dm_4ever


Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Sorry, I've never posted XML data so I've never had the need for something like this.

What line is giving you the error?

This sort of looks like what you're trying...maybe it has something that will help you.  http://www.tek-tips.com/viewthread.cfm?qid=1229724&page=8

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to foane)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> HTTP POST to URL Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts