My Assistant
|
|
Apr 23 2009, 01:47 PM
Post
#1
|
|
|
UtterAccess Enthusiast Posts: 96 From: North Florida, USA |
VB.NET in Visual Studio 2005 has the HTTPWebRequest HTTPWebResponse functions for Post\Get built in to the language. Do these same functions exist in Access 2007?
I am trying to POST a query to a webserver that will return XML data and this is the specified method to 'POST" the data request. Thanks, Rob |
|
|
|
![]() |
Apr 23 2009, 08:38 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 5,200 From: Denver, Colorado [USA] |
I've actually had good success with this in the past, here's a basic shell that uses the XML 3.0 reference:
CODE ' Created 5-15-2002 by Peter M. Schroeder
' Modified 4-23-2009 by Peter M. Schroeder (turned into a generic template for posting to UtterAccess) Public Function gfncXMLPost() As Variant Dim objXMLDOC As New DOMDocument30 Dim objXMLHTTP As New XMLHTTP30 objXMLHTTP.Open "POST", "http://addressgoeshere", False objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" objXMLHTTP.send "yourXMLstringgoeshere" objXMLDOC.validateOnParse = True ' Convert response to XML objXMLDOC.loadXML objXMLHTTP.responseText If objXMLDOC.parseError.errorCode = 0 Then ' If no errors: ' parse the response here End If Set objXMLDOC = Nothing Set objXMLHTTP = Nothing End Function |
|
|
|
highwayrob HTTP POST Apr 23 2009, 01:47 PM
datAdrenaline Re: HTTP POST Apr 23 2009, 02:02 PM
highwayrob Re: HTTP POST Apr 23 2009, 02:05 PM
datAdrenaline Re: HTTP POST Apr 23 2009, 02:40 PM
datAdrenaline Re: HTTP POST Apr 24 2009, 07:33 AM
schroep Re: HTTP POST Apr 24 2009, 06:09 PM
datAdrenaline Re: HTTP POST Apr 24 2009, 06:24 PM
schroep Re: HTTP POST Apr 25 2009, 06:03 PM
BananaRepublic Re: HTTP POST Apr 25 2009, 06:15 PM
schroep Re: HTTP POST Apr 25 2009, 07:41 PM
mishej Re: HTTP POST Apr 25 2009, 08:01 PM
datAdrenaline Re: HTTP POST Apr 27 2009, 10:04 AM
BananaRepublic Re: HTTP POST Apr 27 2009, 10:11 AM
mateo333 Re: HTTP POST May 1 2009, 10:54 AM![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 22nd May 2013 - 04:36 AM |