Click here to Skip to main content
15,867,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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:
QuestionAssigning a New File Format? Pin
Steven Richardson27-Feb-02 12:36
Steven Richardson27-Feb-02 12:36 
AnswerRe: Assigning a New File Format? Pin
Nish Nishant27-Feb-02 13:18
sitebuilderNish Nishant27-Feb-02 13:18 
GeneralCPropertySheet::DoModal() removing the std buttons Pin
fabs27-Feb-02 11:27
fabs27-Feb-02 11:27 
GeneralRe: CPropertySheet::DoModal() removing the std buttons Pin
fabs27-Feb-02 12:04
fabs27-Feb-02 12:04 
QuestionEvent Handler Wizard in VC++ 7? Pin
Matt Newman27-Feb-02 11:01
Matt Newman27-Feb-02 11:01 
GeneralQuestion about C++ Pin
Loli1027-Feb-02 10:06
Loli1027-Feb-02 10:06 
GeneralRe: Question about C++ Pin
Chris Losinger27-Feb-02 10:14
professionalChris Losinger27-Feb-02 10:14 
GeneralRe: Question about C++ Pin
Carlos Antollini27-Feb-02 10:19
Carlos Antollini27-Feb-02 10:19 
GeneralRe: Question about C++ Pin
Roger Wright27-Feb-02 13:13
professionalRoger Wright27-Feb-02 13:13 
GeneralMCAD for C++ Pin
TigerNinja_27-Feb-02 9:24
TigerNinja_27-Feb-02 9:24 
GeneralC++ Pin
dannyhoare@nowhere.com27-Feb-02 9:16
dannyhoare@nowhere.com27-Feb-02 9:16 
GeneralRe: C++ Pin
Paul M Watt27-Feb-02 12:48
mentorPaul M Watt27-Feb-02 12:48 
GeneralRe: C++ Pin
Christian Graus27-Feb-02 15:19
protectorChristian Graus27-Feb-02 15:19 
GeneralRe: C++ Pin
Nish Nishant27-Feb-02 17:14
sitebuilderNish Nishant27-Feb-02 17:14 
GeneralRe: C++ Pin
Christian Graus27-Feb-02 17:31
protectorChristian Graus27-Feb-02 17:31 
GeneralRe: C++ Pin
Nish Nishant27-Feb-02 17:40
sitebuilderNish Nishant27-Feb-02 17:40 
GeneralWildcard Delete Without DOS Window Pin
27-Feb-02 7:42
suss27-Feb-02 7:42 

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.