PDA

Click to See Complete Forum and Search --> : downloading a page with winsock.


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.

dvst8
Jul 11th, 2000, 09:08 AM
i wrote a program using a the Inet control...sorta...
the Inet control has a bug in it, so i implemented a workaround that was in the KB.

i dont think it has a limit on size.
if you want it, i can email it to you

Crypt
Jul 11th, 2000, 09:38 PM
sure, that would be handing for downloading files off the ineternet through your app, if it doesn't have a file size limit. if you can send it to: blahblah@tasmail.com.

thanx dvst8

also if anyone had the answer to my question for this topic, I'd still like to know :) thanx