Solved

simple question about HttpQueryInfo  (i think)

Posted on 2004-08-25
5
233 Views
Last Modified: 2010-04-05
I am using HttpQueryInfo within a routine that uses WinInet to obtain http header information.

My question is: If i use HttpQueryInfo twice - ie: to get the status code and then call it again to get the status text, is this creating extra issues on the server side...ie: 2 hits?  Or am i missing the point altogether?

I have read as much as i can about Wininet on the microsoft site - which was not very clear in parts - so i am hoping that using HttpQueryInfo several times to obtain header information is not going to make my program "unfriendly" to servers out there.

Can anyone enlighten on all of this?
0
Comment
Question by:foxjax
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:Molando
ID: 11890319
You hsuold be able to do a:
 HTTP_QUERY_STATUS_CODE or HTTP_QUERY_STATUS_TEXT, for the dwInfoLevel and recieve them both at once.
Though there is no big problem if you make two requests.
0
 
LVL 2

Accepted Solution

by:
Molando earned 500 total points
ID: 11890330
wish I could type,
have your second param as:  HTTP_QUERY_STATUS_CODE or HTTP_QUERY_STATUS_TEXT. dwInfoLevel is a combination of flags.
0
 

Author Comment

by:foxjax
ID: 11895996
HTTP_QUERY_STATUS_CODE or HTTP_QUERY_STATUS_TEXT doesn't seem to work for me in the code i have been using.

I don't seem to be able to get the information back unless i call HttpQueryInfo several times saving the information off each time....although it is most likely just me getting it wrong
0
 

Author Comment

by:foxjax
ID: 11918008
I am still unable to get both bits of information in one call using HTTP_QUERY_STATUS_CODE or HTTP_QUERY_STATUS_TEXT.

Anyone able to help?

I'll leave this question open for another day before closing it.
0
 

Author Comment

by:foxjax
ID: 11927604
Closing this question as fully unanswered

Will award Molando the points and a grade B.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question