From: Shucheng Liu on
We have a content which need to send out by HTTP request, but it is too big
for HTTP GET method, Is it possible to send request by HTTP POST method in
VBS script? and how?
From: Shucheng Liu on
Seems there are some ActiveX can serve this, such as
http://www.example-code.c...ipt/http_post_form.asp
But can we send request via HTTP POST method by VBS script, without any
additional ActiveX?

"Shucheng Liu" wrote:

> We have a content which need to send out by HTTP request, but it is too big
> for HTTP GET method, Is it possible to send request by HTTP POST method in
> VBS script? and how?
From: Bob Barrows on
Shucheng Liu wrote:
> Seems there are some ActiveX can serve this, such as
> http://www.example-code.c...ipt/http_post_form.asp
> But can we send request via HTTP POST method by VBS script, without
> any additional ActiveX?
>
> "Shucheng Liu" wrote:
>
>> We have a content which need to send out by HTTP request, but it is
>> too big for HTTP GET method, Is it possible to send request by HTTP
>> POST method in VBS script? and how?

Unless you want to resort to automating IE, then the answer is no. There
are no methods to post http requests built into vbscript.

My choice would be to use an xmlhttprequest object that is supplied by
the msxml dll that by now should be installed on every Windows pc.
http://www.google.com/search?hl=en&safe=active&q=http+post+vbscript&btnG=Search

There are other dlls available, such as the one you found
--
HTH,
Bob Barrows


From: Evertjan. on
Bob Barrows wrote on 02 mrt 2010 in microsoft.public.scripting.vbscript:

> Shucheng Liu wrote:
>> Seems there are some ActiveX can serve this, such as
>> http://www.example-code.c...ipt/http_post_form.asp
>> But can we send request via HTTP POST method by VBS script, without
>> any additional ActiveX?
>>
>> "Shucheng Liu" wrote:
>>
>>> We have a content which need to send out by HTTP request, but it is
>>> too big for HTTP GET method, Is it possible to send request by HTTP
>>> POST method in VBS script? and how?
>
> Unless you want to resort to automating IE, then the answer is no.
> There are no methods to post http requests built into vbscript.
>
> My choice would be to use an xmlhttprequest object that is supplied by
> the msxml dll that by now should be installed on every Windows pc.
> http://www.google.com/search?hl=en&safe=active&q=http+post+vbscript&btn
> G=Search
>
> There are other dlls available, such as the one you found

VBS being just a language, "built into vbscript" seems a bit vague,
as VBS cannot live on it's own, i.e. without OS and IE, CSCRIPT, etc.

When talking about in-browser VBS,
why not use a css hidden POST <form> with hidden <input> where the values
can be filled by VBS and the form submitted by vbs?

Or just use the DOM?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)