View Single Post
Join Date: Jun 2008
Posts: 2
Reputation: leowdeo is an unknown quantity at this point 
Solved Threads: 0
leowdeo leowdeo is offline Offline
Newbie Poster

automating login to a server using c++

 
0
  #1
Nov 22nd, 2008
  1. 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
  2. i tested this code on www.campuser.net
  3. i was able to see the pages http requests using a firefox addon called tamper data to analyse their requests
  4. source code is attached
  5.  
  6. steps taken
  7. ----------------
  8. 1. connect to the server on port 80
  9. 2.send a simple GET request to see if stuff works well
  10. 3.attempt a login by sending password and username
  11.  
  12. the good news
  13. -------------------
  14. 1. connection was successful
  15. 2. GET / HTTP/1.1 request worked well
  16.  
  17. the bad news
  18. -------------------
  19. 1. the post was not sucessful and i have totally failed to see why
Attached Files
File Type: txt source code.txt (4.3 KB, 8 views)
Reply With Quote