|
-
Nov 21st, 2006, 10:29 AM
#3
Member
Re: WinSck and Webpages
You can connect to a webserver with the Winsock (ws) control and then send a http request to the server.
ws.Remotehost =<address>
ws.Remoteport=80
ws.connect
while ws.state <> sckConnected
doevents
wend
ws.senddata "get /" & nameofpage & " HTTP/1.0" & vbcrlf & vbcrlf
And then fetch the page in the Dataarrival event for the winsock control.
I'm not sure if i got all the syntax right, i wrote the code in my web brower.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|