Jump to content
Sign in to follow this  
juniq

winhttp request how to read on website

Recommended Posts

juniq

hello I'm a total noob in webprogramming and I found a code snippet which seems to post to a website it looks like this:

 

Func Post($data)
    $sPD = $data

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")

$oHTTP.Open("POST", "www.myserver.com/log", False)

$oHTTP.Send($sPD)
EndFunc

so what can I do to receive data or display it in a html page? or is it server side communication and I need to put a "log.php"  file there? cz in the snippet it's "/log" and not "log.php" so what shall I write in the html script to receive or display this data sent by the autoit script? I know it's more like a webprogramming question but I hope somebody will help me anyways PLEASE

Share this post


Link to post
Share on other sites
JLogan3o13

Moved to the appropriate forum, as the DEV forum very clearly states:

Quote

Do not create AutoIt-related topics here, use AutoIt General Help and Support

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
juniq

hello I'm a total noob in webprogramming and I found a code snippet which seems to post to a website it looks like this:

 

Func Post($data)
    $sPD = $data

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")

$oHTTP.Open("POST", "www.myserver.com/log", False)

$oHTTP.Send($sPD)
EndFunc

so what can I do to receive data or display it in a html page? or is it server side communication and I need to put a "log.php"  file there? cz in the snippet it's "/log" and not "log.php" so what shall I write in the html script to receive or display this data sent by the autoit script? I know it's more like a webprogramming question but I hope somebody will help me anyways PLEASE

Share this post


Link to post
Share on other sites
JLogan3o13

@juniq please stick to one thread


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
juniq
Just now, JLogan3o13 said:

@juniq please stick to one thread

then delete the old one. 

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.