Thread: interact with web sites

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    3

    interact with web sites

    hi, how do you make a program that can interact with web sites, for example login in, or filling up forms. hope you guys can understand what i mean. thank you

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    124
    This really ought to go to the Windows board (I assume you're using Wndows?) as this requires the use of OS's API .... for example, in Windows, you have functions to open a URI, read from it, and close it again afterwards.

    That's an extremely oversimplistic overview, but that's the kind of thing I think you're looking at.

    Without further information, it's difficult to help any further at this stage.
    I think you can put a signature here.

  3. #3
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    http://www.faqs.org/rfcs/rfc2616.html

    Everything you need to know. Read it, learn it, love it.
    If you understand what you're doing, you're not learning anything.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Another library which you might find useful, if you don't want to do everything yourself
    http://curl.haxx.se/
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Location
    Still in the egg
    Posts
    275
    Are you trying to write a web bot that fills the forums with meaningless messages?

  6. #6
    Registered User
    Join Date
    Jul 2006
    Posts
    3
    lolness, no im trying to increase my knowledge. the rfc is a long one, i was thinking of a quick tutorial that can make a simple working program. hmm i guess ill look into windows api.

  7. #7
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    What's wrong with actually learning about what you're trying to use? I love RFCs. Any 12-year old can figure out how to pass some variables to a library function, but I enjoy learning the actual fundamentals of the protocol.
    If you understand what you're doing, you're not learning anything.

  8. #8
    Registered User
    Join Date
    Jul 2006
    Posts
    3
    nothing is wrong with learning about what you're trying to use. i just like it better to have a simple working program then work my way up from there. I dont know, it's just me i guess.

  9. #9
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    Quote Originally Posted by Angoid
    This really ought to go to the Windows board (I assume you're using Wndows?) as this requires the use of OS's API .... for example, in Windows, you have functions to open a URI, read from it, and close it again afterwards.
    ...
    Without further information, it's difficult to help any further at this stage.
    This _might_ be better on the networking forum, but Windows? Yes, you have to use the OS's API in the end, but sockets are (almost) the same on any OS: send(), recv(), etc.
    To the OP: You can go the long and hard road and learn sockets, which are used to connect/send data through the internet. They can be used for more than just webpages, but for someone who's never used them, doing what you're wanting to do would be extremely difficult.

    RFCs, however, are quite useful documents. They're not terribly full of legalese (at least not past my comprehension) and usually describe a protocol in such depth that it's easy to go an write code for it. They're darn useful documents - don't shove them aside.

    libcurl: Wow. I'd heard of it, but never knew what it did. I'm going to look into that... looks like fun - there's some HTTP stuff I've wanted to do.

    fnoyan: My first web/chat bot retrieved my local area's snow school closings, and echo'd new ones to an AIM chat room. The code was a kludge, but it was fun whenever it IMd.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mystery with receiving web sites through winsock
    By maxorator in forum C++ Programming
    Replies: 20
    Last Post: 01-05-2007, 09:56 PM
  2. Determining Latency of Web Sites
    By mmondok in forum C Programming
    Replies: 4
    Last Post: 04-23-2003, 06:47 AM
  3. Getting the ip address of web sites?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 03-18-2002, 12:16 AM
  4. Game Company Web Sites
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-17-2001, 08:32 PM