CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: httpendrequest

  1. #1

    httpendrequest

    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.


  2. #2

    Re: httpendrequest


    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






Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured