Jump to content
Sign in to follow this  

Get HTML page content after POST completed

Recommended Posts


How to get response form php page after form is submitted? php script have form which submits some data and then return some information. Is it possible to get this information?

Will this work

$oIE = _IECreate ("http://www.example.com/script.php")

$oForm = _IEFormGetObjByName ($oIE, "form_img-submit")

$oQuery = _IEFormElementGetObjByName ($oForm, "image")

_IEFormElementSetValue ($oQuery, $sPath)

_IEFormSubmit ($oForm)

_IELoadWait ($oIE)

$sText = _IEBodyReadText ( $oIE )

Share this post

Link to post
Share on other sites

Get and use something like this ~

#include "IncWinHttp.au3"

MsgBox(0, "", HTTPSend(@ScriptDir & "stuff.zip"))

Func HTTPSend($File)
   Local $hOpen, $hConnect, $sRead, $hOpen = _WinHttpOpen(), $hConnect = _WinHttpConnect($hOpen, "website.com"), _
   $sRead = _WinHttpSimpleFormFill($hConnect, "Name_Of_PHP_Script.php", "index:0", "name:file", $File)
   Return $sRead
EndFunc   ;==>HTTPSend

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post

Link to post
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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.