Questions about PassthruAPP



I am studying the PassthruAPP written by Igor, and I came across a couple of questions, wondering if anyone can help me.

1. During a HTTP 302 redirect, ReportProgress is called with status code equals to BINDSTATUS_REDIRECTING, is it possible to change the HTTP header at this point?

In our custom protocol, we need to send a monotonic-increasing id in the header along with every HTTP request, and I want to send different values for the original request and the redirected request.


2. In the above case, Is IInternetProtocolSink::ReportProgress called asynchronously? ie. Is it in the direct path of the redirected HTTP request?


3. In IHttpNegotiate::OnResponse, is there a way to differentiate between HTTP 304 (Not Modified) network response vs a local cache response?

I tried querying using QUERY_IS_CACHED or INTERNET_REQFLAG_FROM_CACHE, but I cannot seem to differentiate between the above two cases.


many thanks

Andrew
.



Relevant Pages

  • WhiteHat Arsenal 1.06 Beta Released
    ... fitted with an HTTP Response Code lookup utility. ... WHArsenal the best web application security product available. ... WhiteHat Arsenal logs all HTTP Request activities in either XML or HTML ... The Session Manager keeps log files ...
    (SecProg)
  • a gentle nudge
    ... I volunteered for a church project whereby I need my PHP page to send off a HTTP request to third party web site that provides a service. ... Is that part of the http package, too, or do I need something else? ...
    (comp.lang.php)
  • Re: Asynchronous Pluggable Protocols and XMLHHTPRequest
    ... You may have the javascript error before the HTTP request is being created. ... initial page is loaded using my protocol then the XMLHttpRequest opens ... I haven't actually seen anything that says that XMLHTTPRequest ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Is it possible to impose a timeout on <>?
    ... This is done via HTTP ... that one of the remote machines was in some kind of strange state. ... So my program opens up a socket, fires off the HTTP request and then ...
    (comp.lang.perl.misc)
  • Imposing a timeout on the <> operator - is this possible?
    ... This is done via HTTP ... that one of the remote machines was in some kind of strange state. ... So my program opens up a socket, fires off the HTTP request and then ...
    (comp.lang.perl)