C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 05-21-2005, 12:32 PM   #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.
bugmike25 is offline   Reply With Quote
Old 05-21-2005, 04:37 PM   #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
__________________
:wq

Last edited by viaxd; 05-21-2005 at 04:41 PM.
viaxd is offline   Reply With Quote
Old 05-22-2005, 01:42 AM   #3
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,647
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.

Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 04:01 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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