Click here to Skip to main content
15,921,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sigh. still not working. Pin
MAAK13-May-03 22:02
MAAK13-May-03 22:02 
GeneralRe: sigh. still not working. Pin
MAAK13-May-03 22:07
MAAK13-May-03 22:07 
GeneralGot it! Pin
Bigsteiny14-May-03 16:18
Bigsteiny14-May-03 16:18 
GeneralAdding to dialogue design palette Pin
Trollslayer12-May-03 5:31
mentorTrollslayer12-May-03 5:31 
GeneralRe: Adding to dialogue design palette Pin
G. Steudtel12-May-03 6:05
G. Steudtel12-May-03 6:05 
QuestionTLB's need to be registered ?? Pin
Braulio Dez12-May-03 5:28
Braulio Dez12-May-03 5:28 
AnswerRe: TLB's need to be registered ?? Pin
Anonymous13-May-03 16:13
Anonymous13-May-03 16:13 
GeneralWinINet Via Proxy Pin
thowra12-May-03 5:09
thowra12-May-03 5:09 
I want to query the last modified time on a file before I download it from the Internet. Unfortunately I'm connected via an MS proxy server which requires the domain name as well as username and password. I've successfully got a response code by using the following WinINet functions:

InternetOpen()<br />
InternetConnect()<br />
HttpOpenRequest()<br />
HttpSendRequest()<br />
HttpQueryInfo()


where HttpQueryInfo() looks something like this:

HttpQueryInfo(hResourceHandle, HTTP_QUERY_FLAG_NUMBER | 
  HTTP_QUERY_STATUS_CODE, &dwStatus, &dwStatusSize, NULL))

Note that I set my internet options for using the proxy using the handle returned from HttpOpenRequest().

HttpSendRequest() returned a response code of 200 - OK.

So now I want to get the last modified details, so I change the HttpQueryInfo() call to something like this:

char szLastModified[32];
DWORD dwLengthLastModified = sizeof(szLastModified); 
HttpQueryInfo(hResourceHandle, HTTP_QUERY_LAST_MODIFIED,
  szLastModified, &dwLengthLastModified, NULL))

Unfortunately, it fails and GetLastError() reports an error code of 12150 - "requested header could not be located".

Can anyone spot what I'm doing wrong?

"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."

"If you think education is expensive, try ignorance."

GeneralErrors Pin
flora_k12-May-03 4:50
flora_k12-May-03 4:50 
GeneralRe: Errors Pin
flora_k12-May-03 4:53
flora_k12-May-03 4:53 
GeneralRe: Errors Pin
G. Steudtel12-May-03 5:11
G. Steudtel12-May-03 5:11 
GeneralRe: Errors Pin
David Crow12-May-03 5:11
David Crow12-May-03 5:11 
GeneralRe: Errors Pin
Iain Clarke, Warrior Programmer12-May-03 5:13
Iain Clarke, Warrior Programmer12-May-03 5:13 
GeneralSpinControl Help Pin
VanHlebar12-May-03 4:45
VanHlebar12-May-03 4:45 
GeneralRe: SpinControl Help Pin
Iain Clarke, Warrior Programmer12-May-03 5:05
Iain Clarke, Warrior Programmer12-May-03 5:05 
GeneralRe: SpinControl Help Pin
VanHlebar12-May-03 16:25
VanHlebar12-May-03 16:25 
GeneralRe: SpinControl Help Pin
VanHlebar12-May-03 16:26
VanHlebar12-May-03 16:26 
GeneralDynamic loading of buttons Pin
JensB12-May-03 4:33
JensB12-May-03 4:33 
GeneralRe: Dynamic loading of buttons Pin
David Crow12-May-03 4:38
David Crow12-May-03 4:38 
GeneralRe: Dynamic loading of buttons Pin
JensB12-May-03 4:43
JensB12-May-03 4:43 
GeneralRe: Dynamic loading of buttons Pin
David Crow12-May-03 5:06
David Crow12-May-03 5:06 
GeneralRe: Dynamic loading of buttons Pin
basementman12-May-03 5:23
basementman12-May-03 5:23 
GeneralRe: Dynamic loading of buttons Pin
David Crow12-May-03 5:56
David Crow12-May-03 5:56 
GeneralCPropertySheet Pin
RalfPeter12-May-03 4:23
RalfPeter12-May-03 4:23 
GeneralRe: CPropertySheet Pin
JensB12-May-03 4:30
JensB12-May-03 4:30 

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.