RT

解决方案 »

  1.   

    Sends the specified request to the HTTP server.BOOL HttpSendRequest(
      HINTERNET hRequest,
      LPCTSTR lpszHeaders,
      DWORD dwHeadersLength,
      LPVOID lpOptional,
      DWORD dwOptionalLength
    );发一个请求到HTTP服务器, GET POST 都肯定可以执行撒。
      

  2.   

    hRequest 
    [in] Handle returned by HttpOpenRequest. 
    lpszHeaders 
    [in] Pointer to a null-terminated string that contains the additional headers to be appended to the request. This parameter can be NULL if there are no additional headers to be appended. 
    dwHeadersLength 
    [in] Size of the additional headers, in TCHARs. If this parameter is -1L and lpszHeaders is not NULL, the function assumes that lpszHeaders is zero-terminated (ASCIIZ), and the length is calculated. See Res for specifics. 
    lpOptional 
    [in] Pointer to a buffer containing any optional data to be sent immediately after the request headers. This parameter is generally used for POST and PUT operations. The optional data can be the resource or information being posted to the server. This parameter can be NULL if there is no optional data to send. 
    dwOptionalLength 
    [in] Size of the optional data, in bytes. This parameter can be zero if there is no optional data to send. 
      

  3.   


    在做这个之前 是不是 还要 intenetopen 啊