Muthu Ram
September 22nd, 1999, 05:13 PM
anyone used httpsendrequestex and httpendrequest api calls? i am trying to make nonblocking http requests.. so i can timeout from the request after a while.
|
Click to See Complete Forum and Search --> : httpendrequest Muthu Ram September 22nd, 1999, 05:13 PM anyone used httpsendrequestex and httpendrequest api calls? i am trying to make nonblocking http requests.. so i can timeout from the request after a while. Muthu Ram October 12th, 1999, 01:39 PM private Type INTERNET_BUFFERS dwStructSize as Long ' used for API versioning. set to sizeof(INTERNET_BUFFERS) next as Long ' INTERNET_BUFFERS chain of buffers lpcszHeader as Long ' pointer to headers (may be null) dwHeadersLength as Long ' length of headers if not null dwHeadersTotal as Long ' size of headers if not enough buffer lpvBuffer as Long ' pointer to data buffer (may be null) dwBufferLength as Long ' length of data buffer if not null dwBufferTotal as Long ' total size of chunk, or content-length if not chunked dwOffsetLow as Long ' used for read-ranges (only used in HttpSendRequest2) dwOffsetHigh as Long End Type private Declare Function HttpSendRequestEx Lib "wininet.dll" Alias "HttpSendRequestExA" _ (byval hHttpRequest as Long, lpBuffersIn as INTERNET_BUFFERS, byval lpBuffersOut as Long, _ byval dwFlags as Long, byval dwContext as Long) as Long private Declare Function HttpEndRequest Lib "wininet.dll" Alias "HttpEndRequestA" _ (byval hHttpRequest as Long, byval lpBuffersOut as Long, _ byval dwFlags as Long, byval dwContext as Long) as Long codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |