Jump to content

Search the Community

Showing results for tags 'WinHttp post php'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Ok my friends, I`m trying to send some data via POST using winhttp.au3 but it`s not working so far. I`m probably missing some detail about how using _WinHttpSendRequest or something. Please help! <autoit> ;variables $INPUT_NAME = "joe" $INPUT_PASSWORD = "joe" $adress = "www.test.com" $openS = _WinHttpOpen() $connector = _WinHttpConnect($openS, $adress) $openRequest = _WinHttpOpenRequest($connector, "POST", "/check.php","HTTP/1.1") $oPost = "username= $INPUT_NAME"; ;send it ;_WinHttpSendRequest($openRequest,"Content-Type: application/x-www-form-urlencoded" & @CRLF, "username=" & $INPUT_NAME & "&password=" & $INPUT_PASSWORD) ;receive response with INET $value = _INetGetSource ( "http://www.test.com/check.php" ) MsgBox(0, "The value is:", $value) </autoit> And this is my PHP code: <?php //Getting from app $user_login = $_POST['username']; $user_pass = $_POST['password']; echo $user_login; ?> So just for test I`m trying to echo the user_login to check if the autoit is passing the variable to php but It`s not!
×
×
  • Create New...