Jump to content

WinINet.au3 causes BSOD


Recommended Posts

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! :P

Link to comment
Share on other sites

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 by HopkinsProg
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...