| | |
automating login to a server using c++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
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 |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





