MadaraUchiha Posted October 22, 2013 Share Posted October 22, 2013 (edited) Yo, I am using InetGet to download a string from a txt file on my server. How can I upload a string into the file on the Server? Something like InetSend or so? Edited October 22, 2013 by MadaraUchiha Link to comment Share on other sites More sharing options...
DatMCEyeBall Posted October 22, 2013 Share Posted October 22, 2013 Please use English on this forum, to translate your posts to english use google translate. Bitte benutzen Sie in diesem Forum Englisch, um Ihre Beiträge auf Englisch Nutzung google translate. "Just be fred, all we gotta do, just be fred." -Vocaliod "That is a Hadouken. A KAMEHAMEHA would have taken him 13 days and 54 episodes to form." - Roden Hoxha @tabhooked Clock made of cursors ♣ Desktop Widgets ♣ Water Simulation Link to comment Share on other sites More sharing options...
MadaraUchiha Posted October 22, 2013 Author Share Posted October 22, 2013 Please use English on this forum, to translate your posts to english use google translate. Bitte benutzen Sie in diesem Forum Englisch, um Ihre Beiträge auf Englisch Nutzung google translate. Sorry, updated it now. Link to comment Share on other sites More sharing options...
DatMCEyeBall Posted October 22, 2013 Share Posted October 22, 2013 Could you give us the website that you're using to upload/download the file? Also, should I still put the translation on my posts? Können Sie uns die Website, die Sie verwenden, um Upload / Download die Datei? Auch sollte ich noch setzen die Übersetzung auf meine Beiträge? "Just be fred, all we gotta do, just be fred." -Vocaliod "That is a Hadouken. A KAMEHAMEHA would have taken him 13 days and 54 episodes to form." - Roden Hoxha @tabhooked Clock made of cursors ♣ Desktop Widgets ♣ Water Simulation Link to comment Share on other sites More sharing options...
MadaraUchiha Posted October 22, 2013 Author Share Posted October 22, 2013 Nope, not necessary to add the translations. You can write english, thats fine. Well, its just a txt file on my webserver. Here i uploaded a file for testing: http://madara1337.3owl.com/Autoit.txt To get the content of the file I use this: Local $sData = InetRead("http://madara1337.3owl.com/Autoit.txt") Local $nBytesRead = @extended MsgBox(4096, "", "Bytes read: " & $nBytesRead & @CRLF & @CRLF & BinaryToString($sData)) Exit That workss fine. I now like to write a string to the text file without using all ftp credentials and stuff. Just a way to upload a string. Link to comment Share on other sites More sharing options...
DatMCEyeBall Posted October 22, 2013 Share Posted October 22, 2013 (edited) >This topic might help you. That link auto directs you to post #7. The UDF used in that post can be found >here. Hope that helps. Edited October 22, 2013 by DatMCEyeBall "Just be fred, all we gotta do, just be fred." -Vocaliod "That is a Hadouken. A KAMEHAMEHA would have taken him 13 days and 54 episodes to form." - Roden Hoxha @tabhooked Clock made of cursors ♣ Desktop Widgets ♣ Water Simulation Link to comment Share on other sites More sharing options...
MadaraUchiha Posted October 22, 2013 Author Share Posted October 22, 2013 Thanks, I'll have a look Link to comment Share on other sites More sharing options...
DW1 Posted October 22, 2013 Share Posted October 22, 2013 (edited) This is your webserver. Do you have a php script or something to handle an http request and place it in to a file? It sounds like you do not, so you would not be able to create an inet upload function like the inetget function. You need some receiving script on the webserver side. Otherwise, you could always set up an FTP server to handle incoming data and place it in your www/htdocs root directory. Edited October 24, 2013 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
MadaraUchiha Posted October 23, 2013 Author Share Posted October 23, 2013 Thanks so far. Normally, if I use VB.Net There is no need for FTP to change a txt file. (With a php file and webrequests). Is it also possible to send a HTTP GET Request. Like: InetRequest("http://myserver.com/file.php?Command=Something") Just like this? Link to comment Share on other sites More sharing options...
MadaraUchiha Posted October 23, 2013 Author Share Posted October 23, 2013 Just a request to a php file, is that possible? And capture the response of course? Link to comment Share on other sites More sharing options...
bogQ Posted October 23, 2013 Share Posted October 23, 2013 ObjCreate for winhttp.winhttprequest.5.1 ? TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
MadaraUchiha Posted October 23, 2013 Author Share Posted October 23, 2013 Thanks for your reply. I am kinda new to this. If I create the Obj, how would a sample request look like. E.g. file is called Test.php Link to comment Share on other sites More sharing options...
bogQ Posted October 23, 2013 Share Posted October 23, 2013 (edited) $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET", "http://www.someurl.rs/test.php?some=vardata&someother=vardata" , False) $oHTTP.send() ConsoleWrite($oHTTP.Responsetext) edit if "winhttp.winhttprequest.5.1" fali (in some cases it can, example trying it on google search can result of blocking if from google service) you can allwayes try to use "Microsoft.XMLHTTP" instead of it Edited October 23, 2013 by bogQ MadaraUchiha 1 TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
MadaraUchiha Posted October 23, 2013 Author Share Posted October 23, 2013 Thank you very much! It works just perfectly :3 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