HopkinsProg Posted March 4, 2009 Share Posted March 4, 2009 Hello all,I have been using the functions in the WinINet.au3 file (found here) and I have recently stumbled across a problem.When the function _WinINet_HttpSendRequest() is called, it causes the computers to crash with a blue screen. I do not have a specific error code unfortunately, as this problem occurs on production machines that I cannot take down for further investigation. The machines in question are running Windows XP with SP2 & SP3.I was just wondering if you all had seen anything like this before.Thanks! Link to comment Share on other sites More sharing options...
Zedna Posted March 4, 2009 Share Posted March 4, 2009 Post small reproducing script to get more help. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
HopkinsProg Posted March 5, 2009 Author Share Posted March 5, 2009 (edited) Below is a basic example of my tie-in to the functions present in WinINet.au3 ; Includes #include "WinINet.au3" ; Open Internet Connection DllOpen("wininet.dll") $internet = _WinINet_InternetOpen("Mozilla") If $internet == 0 Then MsgBox(0, "Error", "Unable to connect to internet.") EndIf ; Connect to authorization server $internetconnect = _WinINet_InternetConnect($internet,$INTERNET_SERVICE_HTTP,"server.me.com","80") If @error Then MsgBox(0,"Error","Error connecting to server.") ; Prepare data to send to server $data = "var1=a&var2=b&var3=c" $type = "Content-Type: application/x-www-form-urlencoded"&@CRLF $agent = "User-Agent: Mozilla/4.0"&@CRLF $newdata = $agent & $type ;ConsoleWrite("POST DATA: "&$data&@CRLF) ; DEBUG ONLY ; Build HTTP POST Request $httprequest = _WinINet_HttpOpenRequest($internetconnect, "POST", "/folder/script.php") $addheader = _WinINet_HttpAddRequestHeaders($httprequest, $newdata, $HTTP_ADDREQ_FLAG_ADD) ;ConsoleWrite($addheader & @CRLF) ; DEBUG ONLY ; Send HTTP POST Request and save return response in local variable $sendrequest = _WinINet_HttpSendRequest($httprequest,Default,StringToBinary($data)) Edited March 5, 2009 by HopkinsProg Link to comment Share on other sites More sharing options...
toonboon Posted March 5, 2009 Share Posted March 5, 2009 You do realize that the exact error code and the details that are given will help a lot in solving the problem? I failed to recreate the BSOD problem on a Vista Home system, just so you know. [right]~What can I say, I'm a Simplistic person[/right] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now