| | |
automating login to a server using c++
![]() |
•
•
Join Date: Jun 2008
Posts: 2
Reputation:
Solved Threads: 0
C++ Syntax (Toggle Plain Text)
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
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.
C++ Syntax (Toggle Plain Text)
Strcat(szSendBuffer,"/r/n);//the terminating empty line
![]() |
Similar Threads
- Disonnect remote users via Script on Terminal Services (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: Parsing error
- Next Thread: Resizing of an array.
| Thread Tools | Search this Thread |
ace_thread api array based binary bitmap borland c++ c/c++ calling char class classes code coding compile console conversion count delete delete-line deploy desktop developer directshow dll download dynamic dynamiccharacterarray email embedded encryption error file forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream information input int integer java lib linkedlist linker loop looping loops map math mathhomeworkhelp matrix memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion reference reverse richedit rpg string strings temperature template test text text-file tree url variable vector video win32 windows winsock word wordfrequency wxwidgets





