SunQuest
           C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old March 7th, 2003, 09:56 AM
the_rza the_rza is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: shoalin temples
Posts: 3 the_rza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
POST with socket()

hello guys ,

im trying to write some code that will automatically check my webmail account for me. One of my acounts is at hotmail.com , and the problem i am getting here is logging into my hotmail account.
Basically i want to log into this account via a socket(). Ive read through the HTTP /1.0 RFC . The method is POST and ive looked up the names of the fields for username and password. , but i cant login

The problems i might be having are :

1 .not POSTING to the right script/place.
2. not making the a valid request ( i.e the syntax is wrong)
3 . something else has gone wromg.

Basically this is the POST request i send in the socket :-
"
POST /ppsecure/post.srf HTTP/1.0\n\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 80\nlogin=myemail&domain=hotmail.com&passwd=12345678

"
and it usually returns the error as , page not found or something,
*note , i get this data because i , got = recv(sock,buff,sizeof(buff) , 0); and then , printf("%s\n" , buff); , so i know what it prints out , i.e what the error/reply was

can anyone tell me what im doing wrong?
how can i get logged into my account via a socket?

im terribly sorry for the long post..

thanks for any help provided :P

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > POST with socket()


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway