Crypt
Jul 11th, 2000, 08:53 AM
Hiyas,
I am thinking about recoding my internet search utility (whatson) using the winsock control instead of the inet control. Apart from it taking more code and being alot more fidly, I want to do it so that I can add search engines which generate pages too big for the inet control to download.
I know how to download a page through a proxy ie: connect to the proxt then send data like
Winsock1.SendData "GET " & "http://www.whatever.com/whatever/whatever.html" & " HTTP/1.0" & vbCrLf & vbCrLf
but with a normal connection you connect to the webpage
say http://www.whatever.com, and from what I know you would just send this data once connected to the site:
Winsock1.SendData "GET " & "/whatever/whatever.html" & " HTTP/1.0" & vbCrLf & vbCrLf
now my question is can you just connect to (http://www.whatever.com) the website on port 80 and send the code like you would a proxy server:
Winsock1.SendData "GET " & "http://www.whatever.com/whatever/whatever.html" & " HTTP/1.0" & vbCrLf & vbCrLf
I know it probably sounds strange but I would rather send the data that way, than just the /webpage way.
thanx.
I am thinking about recoding my internet search utility (whatson) using the winsock control instead of the inet control. Apart from it taking more code and being alot more fidly, I want to do it so that I can add search engines which generate pages too big for the inet control to download.
I know how to download a page through a proxy ie: connect to the proxt then send data like
Winsock1.SendData "GET " & "http://www.whatever.com/whatever/whatever.html" & " HTTP/1.0" & vbCrLf & vbCrLf
but with a normal connection you connect to the webpage
say http://www.whatever.com, and from what I know you would just send this data once connected to the site:
Winsock1.SendData "GET " & "/whatever/whatever.html" & " HTTP/1.0" & vbCrLf & vbCrLf
now my question is can you just connect to (http://www.whatever.com) the website on port 80 and send the code like you would a proxy server:
Winsock1.SendData "GET " & "http://www.whatever.com/whatever/whatever.html" & " HTTP/1.0" & vbCrLf & vbCrLf
I know it probably sounds strange but I would rather send the data that way, than just the /webpage way.
thanx.