Solved

simple question about HttpQueryInfo  (i think)

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LAN or WAN ? 11 95
Convert a string into a TDateTime 5 63
Base1 Encode/Decode 3 81
can i put an image from resource into image tag ? 6 26
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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