How do I do an HTTP POST from VBA?

R

Reventlov

Il giorno Thu, 9 Nov 2006 07:35:02 -0800, =?Utf-8?B?c3Bhcmt5NjI=?=
Is it possible to do an HTTP POST from within VBA?

It's probably possible using xmlhttp post command , but I never tried. This is the "get"
command.

sSource="http://www.google.com"
set oHTTP = WScript.CreateObject("Microsoft.XMLHTTP")
oHTTP.open "GET", sSource, False
oHTTP.send


Sub open(ByVal bstrMethod As String, ByVal bstrUrl As String, [ByVal varAsync], [ByVal
bstrUser], [ByVal bstrPassword])
Membro di MSXML2.XMLHTTP
Open HTTP connection


Giovanni.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top