BryonR Posted August 9, 2008 Share Posted August 9, 2008 I know there is a InetGet. But What about a InetPut or something close? -Bryon Link to comment Share on other sites More sharing options...
d4rk Posted August 9, 2008 Share Posted August 9, 2008 You can see FTP.au3 in Example forum [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
BryonR Posted August 9, 2008 Author Share Posted August 9, 2008 (edited) I need to use the HTTP protocol. I'm currently using curl to upload files to a http site and would like to replace this with code native to autoit. Edited August 9, 2008 by BryonR Link to comment Share on other sites More sharing options...
BrettF Posted August 9, 2008 Share Posted August 9, 2008 search for HTTP.au3... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BryonR Posted August 9, 2008 Author Share Posted August 9, 2008 I took a look at HTTP.AU3 however it wraps the file in a HTTP upload post. I just want to transfer the file. Link to comment Share on other sites More sharing options...
fcjoe Posted August 13, 2008 Share Posted August 13, 2008 Did you ever find a way to do this?I know there is a InetGet. But What about a InetPut or something close?-Bryon Link to comment Share on other sites More sharing options...
Uten Posted August 13, 2008 Share Posted August 13, 2008 I need to use the HTTP protocol. I'm currently using curl to upload files to a http site and would like to replace this with code native to autoit.I took a look at HTTP.AU3 however it wraps the file in a HTTP upload post. I just want to transfer the file.That makes sense. You need to use the HTTP protocol but you don't want to use HTTP protocol methods? Or did I miss something Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
-Ultima- Posted August 13, 2008 Share Posted August 13, 2008 (edited) Uploading via HTTP on websites is done through POST with Multipart Content-Type. I managed to get this working via my WinINet UDFs just last night. The basic gist is that you...1) Generate the Content-Type header field as described by RFC1341 (boundaries, content type, content length)2) Combine the Content-Type header field with the file data, and the boundary again to form the request body3) Send via InternetOpen -> InternetConnect -> HttpOpenRequest -> HttpSendRequest with the request body and the relevant request headers (different from the Content-Type header field) using POSTIt's not simple, but it works. Edited August 13, 2008 by -Ultima- [ WinINet.au3 | Array.au3 (Optimized) | _UnixTimeParse() ] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now