Results 1 to 5 of 5

Thread: [RESOLVED] Winsock Programming

  1. #1

    Thread Starter
    Lively Member ghettohacker's Avatar
    Join Date
    Dec 2005
    Posts
    81

    Resolved [RESOLVED] Winsock Programming

    i've never used winsock, but i'm really trying to learn now. i've been looking for examples of how to log into a webserver and send/get information through a winsock connection, but i can't figure anything out, and i can't find any examples that are close to doing what i want. i know this really might not make sense, but if anyone does understand what i mean, i'd really like a point in the right direction.
    Last edited by ghettohacker; Jan 16th, 2006 at 11:33 PM.

  2. #2

    Thread Starter
    Lively Member ghettohacker's Avatar
    Join Date
    Dec 2005
    Posts
    81

    Re: Winsock Programming

    what i really want to do is create a GUI for a site(allpoetry.com) that will allow me to interact with the website through visual basic, rather than with a web browser.

  3. #3

    Thread Starter
    Lively Member ghettohacker's Avatar
    Join Date
    Dec 2005
    Posts
    81

    Re: Winsock Programming

    i've decided(with a little help) to work on this project in c#, instead of visual basic, but i would really like to know if anyone has any tutorials, or examples that would help in learning how to do this from basic.

  4. #4
    Hyperactive Member Disiance's Avatar
    Join Date
    Sep 2004
    Location
    Denver, CO
    Posts
    439

    Re: Winsock Programming

    Attached is a program I wrote a long time ago. It connects to the ThinkGeek.com fortune page and extracts a fortune, then repeats. It saves the fortunes to a text file, and allows you to go through and read them. It's supposed to sort out any duplicate fortunes, but I'm not sure if it's doing that right or not, can't remember if I ever fixed that bug... (it's been at least a year since I wrote this)...

    If you look at the DownloadFile function, the first couple of lines are the HTTP headers used to connect to ask the server for a file. Look through the program and ask if you have any questions.
    Attached Files Attached Files
    "I don't want to live alone until I'm married" - M.M.R.P

  5. #5

    Thread Starter
    Lively Member ghettohacker's Avatar
    Join Date
    Dec 2005
    Posts
    81

    Re: Winsock Programming

    thanks, i'll give it a try.

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