lo*******@gmail.com wrote:
Is it possible to send a POST request to a website on the intranet and
then retrieve the information from the site? I'm guessing yes with the
help of the XMLHTTP object, but if anyone could give me an example,
some pointers or a link, it'd be a big help.
Thanks,
Andrew
Dim oHTTPPost As Object
Set oHTTPPost = CreateObject("Microsoft.XMLHTTP")
oHTTPPost.Open "POST", "Your URL, False
oHTTPPost.Send
'Process response from server
If oHTTPPost.Status < 300 Then 'Response is OK
SomeVar = oHTTPPost.responseText
End If
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com