Re: Using wininet over http to get a get.cgi file
- From: Skylan <bas.van.lieshout@xxxxxxx>
- Date: Wed, 18 Jun 2008 06:31:00 -0700 (PDT)
On Jun 16, 11:18 pm, no...@xxxxxxx (Reventlov) wrote:
Il giorno Fri, 13 Jun 2008 02:36:21 -0700 (PDT), Skylan <bas.van.liesh...@xxxxxxx> ha
scritto:
Hello, I want to access aprojectorover the network with avbscript
so I can read the lamp hours and status. Can someone help me with some
examples with wininet? I made a search (google as well as Microsoft)
but I can not get it in a vbscript.
I use mshtml.
Sub DownloadWithXMLHTTP (sSource,sDest)
'Download a file using activeX Object XMLHTTP
'and save to sDest using ADO Stream
set oHTTP = WScript.CreateObject("Microsoft.XMLHTTP")
oHTTP.open "GET", sSource, False
oHTTP.send
set oStream = createobject("adodb.stream")
Const adTypeBinary = 1
Const adSaveCreateNotExist = 1
Const adSaveCreateOverWrite = 2
oStream.type = adTypeBinary
oStream.open
oStream.write oHTTP.responseBody
oStream.savetofile sDest, adSaveCreateOverWrite
set oStream = nothing
set oHTTP = nothing
end sub
--
Giovanni Cenati (Bergamo, Italy)
Write to "Reventlov" at katamail comhttp://digilander.libero.it/Cenati(Esempi e programmi in VbScript)
--
Due to lack of knowledge I cannot get any further. I want to create an
overview of all projectors in one screen. In this overview I can see
Lamp Runtimes, Lamp Remaining, Total operation and if the projector is
ON or OFF. Via http://192.168.200.1/info.cgi I can see it with the
Internet Explorer.
Can you put me in the right direction?
.
- Follow-Ups:
- Re: Using wininet over http to get a get.cgi file
- From: Reventlov
- Re: Using wininet over http to get a get.cgi file
- References:
- Using wininet over http to get a get.cgi file
- From: Skylan
- Re: Using wininet over http to get a get.cgi file
- From: Reventlov
- Using wininet over http to get a get.cgi file
- Prev by Date: Re: Using wininet over http to get a get.cgi file
- Next by Date: Re: Using wininet over http to get a get.cgi file
- Previous by thread: Re: Using wininet over http to get a get.cgi file
- Next by thread: Re: Using wininet over http to get a get.cgi file
- Index(es):
Relevant Pages
|
Loading