|
|
|
date: Fri, 2 May 2008 08:32:12 -0700 (PDT),
group: microsoft.public.inetsdk.programming.urlmonikers
back
Re: doubt regarding QueryInfo method of IWininetHttpInfo interface
On May 3, 12:37 am, "Igor Tandetnik" wrote:
> genius1...@yahoo.co.in wrote:
> > I have been trying to find out the length of the HTTP request/response
> > by using QueryInfo method of IWininetHttpInfo interface. I have been
> > passing ContentLength as the parameter. But when I try printing the
> > results , what gets printed is only the Question marks -- ???????.
>
> Show your code.
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
Hello Igor,
Now I am getting the solution. Initially I was doing QueryInfo() in
BeginningTransaction method for getting the content length , hence I
wasn't getting it.
Now I am Querying it in OnResponse method & getting the content
length.
But I have some more Queries : --
1. What Content Lenth gives me is the original content length (i.e.
without compression.)
But in some cases compression is used -- so how can we get the
compressed length of the response ??
2. How can we get the length of the request sent ?
3. In the TestApp.cpp file I have implemented the ReportData method of
IIntternetProtocolSink interface for getting the time when the
request / response has been completly sent/received.
STDMETHODIMP CTestSink::ReportData(DWORD grfBSCF, ULONG ulProgress,
ULONG ProgressMax)
{
// Code for getting the BSCF value and looking out whether that
value is BSCF_LASTDATANOTIFICATION or not.
}
BUT when I execute the code the ReportData method is never called.
Do we need to do anything else for this method to be called ?
Since ReportProgress method (of out PassthruAPP code) is called
automatically by urlmon.dll, I was expecting the ReportData method to
get called automatically. But that is not what is happening !!!
Could you please help me out in this ?
Thanks & Awaiting your reply,
Hitesh
date: Thu, 8 May 2008 19:12:11 -0700 (PDT)
author: unknown
Re: doubt regarding QueryInfo method of IWininetHttpInfo interface
On May 9, 8:27 am, "Igor Tandetnik" wrote:
> wrote in message
>
> news:7da539c1-9421-4513-b733-3a75ffffa6a9@c19g2000prf.googlegroups.com
>
> > 1. What Content Lenth gives me is the original content length (i.e.
> > without compression.)
> > But in some cases compression is used -- so how can we get the
> > compressed length of the response ??
>
> Are you sure? Content-Length header is supposed to provide the size of
> response as transmitted on the wire. If the response is compressed, it
> should be the compressed size. If that's not the case, there's a problem
> with your web server.
>
> > 2. How can we get the length of the request sent ?
>
> I assume you are talking about a POST request. See
> BINDINFO::cbStgmedData
>
> > 3. In the TestApp.cpp file I have implemented the ReportData method of
> > IIntternetProtocolSink interface for getting the time when the
> > request / response has been completly sent/received.
>
> > STDMETHODIMP CTestSink::ReportData(DWORD grfBSCF, ULONG ulProgress,
> > ULONG ProgressMax)
> > {
> > // Code for getting the BSCF value and looking out whether that
> > value is BSCF_LASTDATANOTIFICATION or not.
> > }
> > BUT when I execute the code the ReportData method is never called.
>
> I just tested it - works for me. You must be doing something wrong.
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
Hello Igor,
I got ReportData working . But how do I correlate grfBSCF parameter
with that of the BSCF value.
I am getting the following values for grfBSCF ---- 1,6,12. What does
this mean ??
BSCF is the enum of 5 different values -- so how ot relates with
1,6,12.
Thanks & awaiting your reply,
Hitesh.
date: Wed, 21 May 2008 05:36:11 -0700 (PDT)
author: unknown
|
|