Results 1 to 3 of 3

Thread: downloading a page with winsock.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    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
    Code:
    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:

    Code:
    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:

    Code:
    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.

  2. #2
    Addicted Member
    Join Date
    May 2000
    Posts
    142

    not the answer you wanted

    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
    Secret to long life:
    Keep breathing as long as possible.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    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: [email protected].

    thanx dvst8

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width