Sign in to follow this  
Followers 0
MadaraUchiha

Inet Upload?

14 posts in this topic

#1 ·  Posted (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 by MadaraUchiha

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

 

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.


Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.


Share this post


Link to post
Share on other sites

#6 ·  Posted (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 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

Share this post


Link to post
Share on other sites

Thanks, I'll have a look :)


Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by danwilli

Share this post


Link to post
Share on other sites

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?


Share this post


Link to post
Share on other sites

Just a request to a php file, is that possible? And capture the response of course?


Share this post


Link to post
Share on other sites

ObjCreate for winhttp.winhttprequest.5.1 ?


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 

Share this post


Link to post
Share on other sites

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


Share this post


Link to post
Share on other sites

#13 ·  Posted (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 by bogQ
1 person likes this

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 

Share this post


Link to post
Share on other sites

Thank you very much!

It works just perfectly :3


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