Sign in to follow this  
Followers 0
sumone4life

GET and POST data

5 posts in this topic

I was hoping to send GET and POST data to a website and submit the information without actually having the page open in a browser. If anyone could point me in the direction of an example or some commands that i could utilize to get this to work that would be awsome.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

sumone4life,

One thing you could do is get yourself a browser developer kit and learn how and which TCP packages to capture and build an Autoit proggie around that... if you don't mind using an IE window I'd say use the exelent works of DaleHohm --> IE.au3

Cheers,

Rick

Edited by Rick-O-Shea

Share this post


Link to post
Share on other sites

Id rather not use the IE browser. I have used DaleHohm's IE include a couple of times so i know i can do it that way, id just perfer doing it without having to open up a new browser. Do you know of any browser development kits or anywhere i could go to learn about the TCP packets involved in sending the data?

Share this post


Link to post
Share on other sites

See my sig for some pointers including 1) Fiddler for HTTP capture and manipulation and 2) an HTTP Post UDF written by another forum member.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I use this little bit of source , this object seems super fast at doing a POST

$oHttpRequest = ObjCreate("MSXML2.ServerXMLHTTP")
$oHttpRequest.Open ("POST", $sTestUrl,True)
$oHttpRequest.setRequestHeader  ("Content-Type", $Header)
$oHttpRequest.setRequestHeader  ("Connection", "Keep-Alive")
$oHttpRequest.Send ($PostData)
Edited by Hasher

Firefox's secret is the same as Jessica Simpson's: its effortless, glamorous style is the result of — shhh — extensions!

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  
Followers 0