The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled C++ Code
Posted by: Lokomotiv | April 26, 2011 @ 4:18pm
Revision 1 - Original post on April 26, 2011 @ 12:19pm
C++ Code
[
Download
]
static char hdrs[] = "Content-Type: application/x-www-form-urlencoded"; static char frmdata[] = "username=username&password=password&loginButton=Login&autoScroll=&loginForm_SUBMIT=1&loginForm%3A_idcl=&loginForm%3A_link_hidden_=&javax.faces.ViewState=rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAdfaWQxNDc4cHQACi9sb2dpbi5qc3A%3D"; static LPSTR accept = ("*/*", NULL); string m_strURL, tempstr; HINTERNET hSession, hDownload, hRequest; hSession = InternetOpen("DFBAC", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0); hDownload = InternetConnect(hSession, "localhost", INTERNET_DEFAULT_HTTPS_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0); hRequest = HttpOpenRequest(hDownload, "POST", "/homepage/login.jsf", "HTTP/1.1", NULL, NULL, INTERNET_FLAG_SECURE, 0); HttpSendRequest(hRequest, hdrs, strlen(hdrs), frmdata, strlen(frmdata));
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
3.90 / 8
63 Votes