Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grabbing Web HTML Content
Message
From
23/01/2003 04:33:58
 
 
To
22/01/2003 15:55:43
General information
Forum:
Visual Basic
Category:
VBA
Miscellaneous
Thread ID:
00744248
Message ID:
00744637
Views:
7
Dennis,

This worked a treat.

I see what you are doing. the first call returns the size of the buffer, the second call actually returns the status code.

I am now struggling with InternetSetOption... again it keeps hanging...

Any ideas?

Mace


>Here's the function I use to get the status. It's worked pretty good for me. hFile is a handle returned from HttpSendRequest().
>
>Function HTTPStatus(hFile as long) as long
>Dim sBuf As String, nStatus As Long, nSize as long
>HttpQueryInfo hFile, HTTP_QUERY_STATUS_CODE, ByVal (sBuf), nSize, 0
>If nSize > 0 Then
> sBuf = Space(nSize)
> HttpQueryInfo hFile, HTTP_QUERY_STATUS_CODE, ByVal (sBuf), nSize, 0
> If sBuf <> "" Then
> nStatus = Val(sBuf)
> End If
>End If
>End Function
>
>Dennis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform