Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Mon, 30 May 2005 14:30:50 +0200,    group: microsoft.public.inetsdk.programming.urlmonikers        back       


Urlmonikers and https requests   
Hi,

I am experiencing some problems when I try to download a file with 
urlmonikers and https. My client implements the IBindStatusCallback and 
IHttpNegotiate interfaces and whenever I send a request to an ordinary http 
address I receive the response header within the callback method OnResponse 
(of IBindStatusCallback). Thereafter the data within the response is 
received within the OnDataAvailable callback. This works as long as the 
requested address is an http address but as soon as there is an 
https-request I will not get any callback at OnResponse. The logfiles at the 
server (from where the file is requested) indicates that there is indeed a 
response to the request but I can not find a way to receive it as a 
callback. Do I need to implement any additional interface to be able to 
retrieve a callback with the response header and data?

I am using BINDVERB_POST as verb and an IStream implementation for sending 
the form. The following values from the BINDF structure are used: 
BINDF_ASYNCSTORAGE | BINDF_PULLDATA | BINDF_GETNEWESTVERSION | 
BINDF_NOWRITECACHE | BINDF_FORMS_SUBMIT.

Furthermore, I have compared the flow of callbacks that I recieve for the 
http as well as the https request:

Request to an https address:
IBindStatusCallback::OnStartBinding
IHttpNegotiate::BeginningTransaction
IBindStatusCallback::OnProgress BINDSTATUS_COOKIE_SENT
IBindStatusCallback::OnProgress BINDSTATUS_SENDINGREQUEST
IStream::Read
IStream::Read
IBindStatusCallback::OnProgress BINDSTATUS_SENDINGREQUEST
IBindStatusCallback::OnStopBinding

Request to an http address:
IBindStatusCallback::OnStartBinding
IHttpNegotiate::BeginningTransaction
IBindStatusCallback::OnProgress BINDSTATUS_COOKIE_SENT
IBindStatusCallback::OnProgress BINDSTATUS_SENDINGREQUEST
IStream::Read
IStream::Read
IBindStatusCallback::OnProgress BINDSTATUS_SENDINGREQUEST
IBindStatusCallback::OnProgress BINDSTATUS_CONTENTDISPOSITIONATTACH
IBindStatusCallback::OnProgress BINDSTATUS_LOADINGMIMEHANDLER
IBindStatusCallback::OnProgress BINDSTATUS_MIMETYPEAVAILABLE
IBindStatusCallback::OnProgress BINDSTATUS_BEGINDOWNLOADDATA
IBindStatusCallback::OnProgress BINDSTATUS_CACHEFILENAMEAVAILABLE
IBindStatusCallback::OnProgress BINDSTATUS_ENDDOWNLOADDATA
IBindStatusCallback::OnStopBinding

Thanks,
Linda
date: Mon, 30 May 2005 14:30:50 +0200   author:   Linda Doktr lindadotdoktaratbrainpooldotse

Re: Urlmonikers and https requests   
"Linda Doktr" <lindadotdoktaratbrainpooldotse> wrote in message
news:%23PPiENRZFHA.1092@tk2msftngp13.phx.gbl
> I am experiencing some problems when I try to download a file with
> urlmonikers and https. My client implements the IBindStatusCallback
> and IHttpNegotiate interfaces and whenever I send a request to an
> ordinary http address I receive the response header within the
> callback method OnResponse (of IBindStatusCallback). Thereafter the
> data within the response is received within the OnDataAvailable
> callback. This works as long as the requested address is an http
> address but as soon as there is an https-request I will not get any
> callback at OnResponse. The logfiles at the server (from where the
> file is requested) indicates that there is indeed a response to the
> request but I can not find a way to receive it as a callback. Do I
> need to implement any additional interface to be able to retrieve a
> callback with the response header and data?
> Request to an https address:
> IBindStatusCallback::OnStartBinding
> IHttpNegotiate::BeginningTransaction
> IBindStatusCallback::OnProgress BINDSTATUS_COOKIE_SENT
> IBindStatusCallback::OnProgress BINDSTATUS_SENDINGREQUEST
> IStream::Read
> IStream::Read
> IBindStatusCallback::OnProgress BINDSTATUS_SENDINGREQUEST
> IBindStatusCallback::OnStopBinding

What status code is reported in OnStopBinidng?

Do you have a URL that reproduces the problem, that I can test against? 
If you have a small sample that reproduces the problem, you can email it 
to me at itandetnik@mvps.org if you want - I'll look at it.
-- 
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
date: Mon, 30 May 2005 12:03:21 -0400   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us