Click here to Skip to main content
15,120,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SendMessage(param1, WM_SETTEXT.. Pin
Nish Nishant27-Feb-02 15:06
sitebuilderNish Nishant27-Feb-02 15:06 
GeneralRe: SendMessage(param1, WM_SETTEXT.. Pin
Alan Blakely27-Feb-02 15:17
MemberAlan Blakely27-Feb-02 15:17 
GeneralRe: SendMessage(param1, WM_SETTEXT.. Pin
Nish Nishant27-Feb-02 15:52
sitebuilderNish Nishant27-Feb-02 15:52 
GeneralRe: SendMessage(param1, WM_SETTEXT.. Pin
Alan Blakely27-Feb-02 16:09
MemberAlan Blakely27-Feb-02 16:09 
QuestionGetting logon status?? Pin
Coremn27-Feb-02 14:46
MemberCoremn27-Feb-02 14:46 
GeneralMFC Proxy woes Pin
27-Feb-02 14:14
suss27-Feb-02 14:14 
GeneralRe: MFC Proxy woes Pin
Joaquín M López Muñoz27-Feb-02 20:51
MemberJoaquín M López Muñoz27-Feb-02 20:51 
GeneralRe: MFC Proxy woes Pin
eXplodus1-Mar-02 12:11
MembereXplodus1-Mar-02 12: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 13:36
MemberSteven Richardson27-Feb-02 13:36 
AnswerRe: Assigning a New File Format? Pin
Nish Nishant27-Feb-02 14:18
sitebuilderNish Nishant27-Feb-02 14:18 
GeneralCPropertySheet::DoModal() removing the std buttons Pin
fabs27-Feb-02 12:27
Memberfabs27-Feb-02 12:27 
GeneralRe: CPropertySheet::DoModal() removing the std buttons Pin
fabs27-Feb-02 13:04
Memberfabs27-Feb-02 13:04 
QuestionEvent Handler Wizard in VC++ 7? Pin
Matt Newman27-Feb-02 12:01
MemberMatt Newman27-Feb-02 12:01 
GeneralQuestion about C++ Pin
Loli1027-Feb-02 11:06
MemberLoli1027-Feb-02 11:06 
GeneralRe: Question about C++ Pin
Chris Losinger27-Feb-02 11:14
professionalChris Losinger27-Feb-02 11:14 
GeneralRe: Question about C++ Pin
Carlos Antollini27-Feb-02 11:19
MemberCarlos Antollini27-Feb-02 11:19 
GeneralRe: Question about C++ Pin
Roger Wright27-Feb-02 14:13
professionalRoger Wright27-Feb-02 14:13 
GeneralMCAD for C++ Pin
Soliant27-Feb-02 10:24
MemberSoliant27-Feb-02 10:24 
GeneralC++ Pin
dannyhoare@nowhere.com27-Feb-02 10:16
Memberdannyhoare@nowhere.com27-Feb-02 10:16 
GeneralRe: C++ Pin
Paul M Watt27-Feb-02 13:48
mentorPaul M Watt27-Feb-02 13:48 
GeneralRe: C++ Pin
Christian Graus27-Feb-02 16:19
protectorChristian Graus27-Feb-02 16:19 
GeneralRe: C++ Pin
Nish Nishant27-Feb-02 18:14
sitebuilderNish Nishant27-Feb-02 18:14 
GeneralRe: C++ Pin
Christian Graus27-Feb-02 18:31
protectorChristian Graus27-Feb-02 18:31 
GeneralRe: C++ Pin
Nish Nishant27-Feb-02 18:40
sitebuilderNish Nishant27-Feb-02 18:40 
GeneralWildcard Delete Without DOS Window Pin
27-Feb-02 8:42
suss27-Feb-02 8: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.