Solved

simple question about HttpQueryInfo  (i think)

Posted on 2004-08-25
5
236 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month6 days, 11 hours left to enroll

636 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