-
C++ (
http://www.daniweb.com/forums/forum8.html)
| leowdeo | Nov 22nd, 2008 1:16 am | |
| automating login to a server using c++ 1 Attachment(s) am trying to login to a server, say my gmail account by sending it my username and password in a typical POST request. to make my life simpler
i tested this code on www.campuser.net
i was able to see the pages http requests using a firefox addon called tamper data to analyse their requests
source code is attached
steps taken
----------------
1. connect to the server on port 80
2.send a simple GET request to see if stuff works well
3.attempt a login by sending password and username
the good news
-------------------
1. connection was successful
2. GET / HTTP/1.1 request worked well
the bad news
-------------------
1. the post was not sucessful and i have totally failed to see why |
| Paul.Esson | Nov 22nd, 2008 9:27 am | |
| Re: automating login to a server using c++ I don't know if this is the problem, but on the post request you have the terminating empty line after you have the post data.
Strcat(szSendBuffer,"/r/n);//the terminating empty line |
| All times are GMT -4. The time now is 4:10 pm. | |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC