spymare 0 Posted October 17, 2010 hi can someone post an example how a script could be uploading example a jpg image with a simple upload form like thisdbq.dkmaybe using winhttp: http://www.autoitscript.com/forum/index.php?showtopic=84133 Share this post Link to post Share on other sites
trancexx 1,013 Posted October 17, 2010 (edited) We have general rule about helping with code and not helping by writing code. But since this is sort of a new thing, here: #include "WinHttp.au3" Global Const $sAddress = "some.address" Global $hOpen = _WinHttpOpen() Global $hConnect = _WinHttpConnect($hOpen, $sAddress) Global $sHTM = _WinHttpSimpleFormFill($hConnect, Default, Default, "name:uploaded", @ScriptFullPath) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) ConsoleWrite(">Server response:" & @CRLF & $sHTM & @CRLF) MsgBox(262144, "Server response", $sHTM) Edited December 3, 2010 by trancexx ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
spymare 0 Posted October 17, 2010 thx but how would i make it upload example @scriptdir & "\test.docx Share this post Link to post Share on other sites
trancexx 1,013 Posted October 17, 2010 Yeah, sure. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
spymare 0 Posted October 17, 2010 (edited) closed Edited December 1, 2010 by spymare Share this post Link to post Share on other sites
trancexx 1,013 Posted October 17, 2010 Greater force maybe. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
trancexx 1,013 Posted October 17, 2010 Force majeur. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
spymare 0 Posted October 17, 2010 hmm i don't get it how to upload examples a file from c drive Share this post Link to post Share on other sites
JohnOne 1,603 Posted October 18, 2010 Check yor code for errors. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
spymare 0 Posted October 18, 2010 (edited) closed Edited December 1, 2010 by spymare Share this post Link to post Share on other sites
Valik 478 Posted December 1, 2010 You might try actually communicating. Just saying "closed" makes no sense. Neither does reporting the thread stating it should be deleted without offering any justification on context for why it should be deleted. Share this post Link to post Share on other sites