Using HTTP protocol

This is a discussion on Using HTTP protocol within the Networking/Device Communication forums, part of the General Programming Boards category; i was wondering if it is possible to create a program that could access a specific internet site. for example ...

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    3

    Using HTTP protocol

    i was wondering if it is possible to create a program that could access a specific internet site. for example to login automatically with a username and password.

    Does anyone know how to do this????
    10x alot.

  2. #2
    ~viaxd() viaxd's Avatar
    Join Date
    Aug 2003
    Posts
    246
    you make a connection to the web server, then use HTTP to get what you want. if a user/pass is sent using the GET method, then you can put them in the URL, like: http://site.com/logn.php?u=user&p=pass
    HTTP query looks like this:
    GET /index.htm HTTP/1.1
    User-Agent: Mozilla/3.0 (compatible; Opera/3.0; Windows 95/NT4)
    Host: site.com

    there's an rfc for http here: http://www.faqs.org/rfcs/rfc2068.html
    Last edited by viaxd; 05-21-2005 at 05:41 PM.
    :wq

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,762
    Well making your way through this lot will no doubt be valuable in the long run.
    Useful Links And Good Books
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 02:58 PM
  2. Error stop Http Listener
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 06-04-2008, 03:14 AM
  3. Writing all HTTP requests from a website to a log file
    By goomyman in forum C# Programming
    Replies: 1
    Last Post: 07-29-2005, 10:18 AM
  4. HTTP Protocol
    By konartis_3000 in forum Tech Board
    Replies: 3
    Last Post: 01-18-2004, 06:09 PM
  5. HTTP Protocol :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 9
    Last Post: 06-21-2002, 04:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21