Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

simple question about HttpQueryInfo  (i think)

Posted on 2004-08-25
5
Medium Priority
?
240 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 1500 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

721 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