Click here to Skip to main content
16,012,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralALMOST THERE Pin
tbbooher5-Mar-02 10:30
tbbooher5-Mar-02 10:30 
GeneralRe: ALMOST THERE Pin
Joaquín M López Muñoz5-Mar-02 11:24
Joaquín M López Muñoz5-Mar-02 11:24 
GeneralRe: ALMOST THERE Pin
tbbooher5-Mar-02 12:53
tbbooher5-Mar-02 12:53 
GeneralHELP Pin
sardinka5-Mar-02 9:04
sardinka5-Mar-02 9:04 
GeneralRe: HELP Pin
Joaquín M López Muñoz5-Mar-02 9:18
Joaquín M López Muñoz5-Mar-02 9:18 
GeneralRe: HELP Pin
Mazdak5-Mar-02 9:15
Mazdak5-Mar-02 9:15 
GeneralRe: HELP Pin
Bill Wilson5-Mar-02 9:17
Bill Wilson5-Mar-02 9:17 
QuestionCookies in Winsock - How? Pin
5-Mar-02 8:35
suss5-Mar-02 8:35 
Hi everybody!

I'm writing program, that will go to some web site, log in, and retrieve some data. I know how to get data from web server, that does not reqire any authentication.
Web page I'm trying to log in is a standard form where you can enter username and password. Below is part of Java script of that page:

function secure_login(form)
{
// Prepare session cookies for secure login
document.cookie = "uid=" + escape(form.UserID.value) + "; path=/; domain=.somedomain.com";
document.cookie = "pwd=" + escape(form.Passwd.value) + "; path=/; domain=.somedomain.com";
document.cookie = "redirect=" + escape(form.redirect.options[form.redirect.selectedIndex].value) + "; path=/; domain=.somedomain.com";
location = "https://www.somedomain.com/secure_login.html";
}

After login server will redirect me to another page (let's say, Page2), and I want to do some work with it ("POST"s and "GET"s).
As I understand, when doing "POST" to Page2, I should somehow specify these cookies in HttpRequest. Am I right?
If yes, how should I do that? If there is any example, I'll greatly appreciate it!

Kosta.
AnswerRe: Cookies in Winsock - How? Pin
Joaquín M López Muñoz5-Mar-02 8:56
Joaquín M López Muñoz5-Mar-02 8:56 
GeneralRe: Cookies in Winsock - How? Pin
5-Mar-02 9:15
suss5-Mar-02 9:15 
GeneralRe: Cookies in Winsock - How? Pin
5-Mar-02 9:20
suss5-Mar-02 9:20 
GeneralRe: Cookies in Winsock - How? Pin
Joaquín M López Muñoz5-Mar-02 9:39
Joaquín M López Muñoz5-Mar-02 9:39 
GeneralServices and Window Station Pin
5-Mar-02 8:14
suss5-Mar-02 8:14 
GeneralRe: Services and Window Station Pin
Tomasz Sowinski5-Mar-02 8:22
Tomasz Sowinski5-Mar-02 8:22 
GeneralRe: Services and Window Station Pin
5-Mar-02 8:45
suss5-Mar-02 8:45 
GeneralRe: Services and Window Station Pin
Tomasz Sowinski5-Mar-02 8:49
Tomasz Sowinski5-Mar-02 8:49 
GeneralRe: Services and Window Station Pin
5-Mar-02 9:15
suss5-Mar-02 9:15 
GeneralRe: Services and Window Station Pin
Tomasz Sowinski5-Mar-02 9:26
Tomasz Sowinski5-Mar-02 9:26 
GeneralRe: Services and Window Station Pin
5-Mar-02 10:10
suss5-Mar-02 10:10 
GeneralRe: Services and Window Station Pin
Tomasz Sowinski5-Mar-02 10:11
Tomasz Sowinski5-Mar-02 10:11 
GeneralRe: Services and Window Station Pin
5-Mar-02 10:26
suss5-Mar-02 10:26 
GeneralRe: Services and Window Station Pin
Michael Dunn5-Mar-02 8:45
sitebuilderMichael Dunn5-Mar-02 8:45 
GeneralCheckbox list with images Pin
kirankm5-Mar-02 7:48
kirankm5-Mar-02 7:48 
GeneralRe: Checkbox list with images Pin
Tomasz Sowinski5-Mar-02 7:51
Tomasz Sowinski5-Mar-02 7:51 
GeneralRe: Checkbox list with images Pin
Joaquín M López Muñoz5-Mar-02 7:53
Joaquín M López Muñoz5-Mar-02 7:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.