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
"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