Expand collapse popup #include "3" $hOpen = _WinHttpOpen ( ) $hConnect = _WinHttpConnect ( $hOpen, ") $hRequest = _WinHttpOpenRequest ( $hConnect, 'GET', "/folder/?user=kiki", Default, "", Default, $WINHTTP_FLAG_SECURE ) _WinHttpAddRequestHeaders ( $hRequest, "Authorization: xxxxxxxxxxxxxxxxxxxx" ) _WinHttpSendRequest ( $hRequest, Default ) Wait for the response _WinHttpReceiveResponse ( $hRequest ) If Then MsgBox ( 48, "Error", "Error waiting for the response from the server." ) _WinHttpCloseHandle ( $hRequest ) _WinHttpCloseHandle ( $hConnect ) _WinHttpCloseHandle ( $hOpen ) Exit 5 EndIf See if there is data to read Global $sChunk, $sData If _WinHttpQueryDataAvailable ( $hRequest ) Then Read While 1 $sChunk = _WinHttpReadData ( $hRequest ) If Then ExitLoop $sData
0 Comments
Leave a Reply. |