Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Posting to HTTPS server

0 views
Skip to first unread message

Ilene

unread,
May 5, 1998, 3:00:00 AM5/5/98
to

I am posting data to a server using HTTPS with WinInet and Visual Basic 5.0
Enterprise on Win NT 4.0.

I make the calls asynchronously with a callback function and a timer.
Everything runs smoothly through the InternetOpen, HTTPOpenRequest and
HTTPSendRequest calls. However when I call the InternetReadFile command to
retrieve the response from the server, the buffer parameter doesn't seem to
get filled with the return data. The NumberOfBytesRead parameter is
returned, just as if the buffer was being filled yet the buffer only
contains all spaces like it was originally created with.

As a test, I set a watch on the variable that holds the buffer and it does
have the data returned from the server at some point after the
InternetReadFile, yet if I try to read the variable at any point after the
call, the server data is not there. Should I be waiting for a certain
status after I call InternetReadFile in order to retrieve the data? I
generally get INTERNET_STATUS_RECEIVING_RESPONSE,
INTERNET_STATUS_RESPONSE_RECEIVED, and INTERNET_STATUS_REQUEST_COMPLETE
after calling that function. (Trying to access the buffer after any of
these statuses are reported doesn't meet with success)

I would really appreciate any suggestions or comments.

Thank You In Advance,

Ilene LaBarbera
il...@datawide.com


0 new messages