Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create .mak File Pin
Joaquín M López Muñoz28-Feb-02 2:55
Joaquín M López Muñoz28-Feb-02 2:55 
GeneralQuestion about AddIns for Visual Pin
Nokia.pl28-Feb-02 0:40
Nokia.pl28-Feb-02 0:40 
GeneralRe: Question about AddIns for Visual Pin
Gavin Jerman28-Feb-02 1:18
Gavin Jerman28-Feb-02 1:18 
GeneralIs there a way to get IActiveScript*** Pin
Brian V Shifrin27-Feb-02 23:58
Brian V Shifrin27-Feb-02 23:58 
QuestionHow do u find bugs in MFC programs? Pin
John Cruz27-Feb-02 23:31
John Cruz27-Feb-02 23:31 
AnswerRe: How do u find bugs in MFC programs? Pin
Nish Nishant27-Feb-02 23:50
sitebuilderNish Nishant27-Feb-02 23:50 
AnswerRe: How do u find bugs in MFC programs? Pin
Mukkie28-Feb-02 11:29
Mukkie28-Feb-02 11:29 
GeneralRe: How do u find bugs in MFC programs? Pin
Tim Smith28-Feb-02 11:51
Tim Smith28-Feb-02 11:51 
Generalfocusing problem on windows 2000 Pin
27-Feb-02 22:29
suss27-Feb-02 22:29 
GeneralRe: focusing problem on windows 2000 Pin
Nish Nishant27-Feb-02 23:48
sitebuilderNish Nishant27-Feb-02 23:48 
GeneralRe: focusing problem on windows 2000 Pin
Tim Smith28-Feb-02 2:11
Tim Smith28-Feb-02 2:11 
GeneralRe: focusing problem on windows 2000 Pin
28-Feb-02 4:49
suss28-Feb-02 4:49 
GeneralLarge executables when using STL Pin
Travis D. Mathison27-Feb-02 21:32
Travis D. Mathison27-Feb-02 21:32 
GeneralRe: Large executables when using STL Pin
Jon Hulatt28-Feb-02 1:14
Jon Hulatt28-Feb-02 1:14 
GeneralSerial Port Class Pin
Mark Donkers27-Feb-02 15:04
Mark Donkers27-Feb-02 15:04 
GeneralRe: Serial Port Class Pin
Joaquín M López Muñoz27-Feb-02 19:46
Joaquín M López Muñoz27-Feb-02 19:46 
GeneralSendMessage(param1, WM_SETTEXT.. Pin
Alan Blakely27-Feb-02 13:52
Alan Blakely27-Feb-02 13:52 
GeneralRe: SendMessage(param1, WM_SETTEXT.. Pin
Nish Nishant27-Feb-02 14:06
sitebuilderNish Nishant27-Feb-02 14:06 
GeneralRe: SendMessage(param1, WM_SETTEXT.. Pin
Alan Blakely27-Feb-02 14:17
Alan Blakely27-Feb-02 14:17 
GeneralRe: SendMessage(param1, WM_SETTEXT.. Pin
Nish Nishant27-Feb-02 14:52
sitebuilderNish Nishant27-Feb-02 14:52 
GeneralRe: SendMessage(param1, WM_SETTEXT.. Pin
Alan Blakely27-Feb-02 15:09
Alan Blakely27-Feb-02 15:09 
QuestionGetting logon status?? Pin
Coremn27-Feb-02 13:46
Coremn27-Feb-02 13:46 
GeneralMFC Proxy woes Pin
27-Feb-02 13:14
suss27-Feb-02 13:14 
GeneralRe: MFC Proxy woes Pin
Joaquín M López Muñoz27-Feb-02 19:51
Joaquín M López Muñoz27-Feb-02 19:51 
GeneralRe: MFC Proxy woes Pin
eXplodus1-Mar-02 11:11
eXplodus1-Mar-02 11:11 
CHttpFile *s;
CHttpConnection *c;
CInternetSession *is;

if (useProxy)
is = new CInternetSession(NULL, 1, INTERNET_OPEN_TYPE_PROXY, ProxyURL);
else
is = new CInternetSession(NULL, 1, INTERNET_OPEN_TYPE_DIRECT);

c = is->GetHttpConnection("ip", (INTERNET_PORT) 4000);

wsprintf (param,"nickname=%s&password=%s&entranceRoom=%s",User,PassWd,RaumName);
wsprintf (length,"Content-Length: %d\r\n",strlen(param));

strcpy (header,hdrs2);
strcat (header,hdrs3);
strcat (header,hdrs4);
strcat (header,length);
strcat (header,hdrs5);

wsprintf(rline, "/Login.html");

s = c->OpenRequest("POST",rline,referer,0,NULL,"HTTP/1.1",INTERNET_FLAG_DONT_CACHE | INTERNET_FLAG_RELOAD);

LPCTSTR lpszHeaders = header;

s->SendRequest(lpszHeaders, strlen(header), param, strlen(param));

f = new fstream("back.html", ios::out);
while (s->ReadString(l) != FALSE)
{
... // some *f things
}
delete f;

s->Close();
delete s;
delete c;
delete is;


this is only a little example from my code ... not even perfect but its working.
u always have to check ur headers and the things that you send.
best way to check is a html browser and a packet sniffer. there are many outta there. with the sniffer u see the original header and data. and could also check your program that it send also the right one.

bye
Suspicious | :suss:

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.