rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: padmavathinedunuri on January 30, 2020, 09:05:33 AM
-
Hi,
Is there a way to upload files to HFS server using adb commands. I need to perform upload/download on android phone.
I found an existing post where it does using the curl command on windows command prompt.
curl -F fileupload1=@<filePath> -F press="Upload files" <IPAddress > I need the same operatin to be performed using adb command.
Thanks in advance!
-
HFS speaks HTTP.
CURL speaks HTTP.
you need to speak http to do the job, and i don't know if adb can help you.
-
Thanks a lot for you reply, Could you help me with the corresponding http command.
I have tried various methods, but was failing to upload larger files. Getting sockets exceptions.
Could you help to share the http snippet corresponds to the below curl command:
curl -F fileupload1=<File> -F press="Upload files" <Server Ipadress>
-
Thanks a lot for you reply, Could you help me with the corresponding http command.
I have tried various methods, but was failing to upload larger files. Getting sockets exceptions.
Could you help to share the http snippet corresponds to the below curl command:
curl -F fileupload1=<File> -F press="Upload files" <Server Ipadress>
HI, Try thie.
curl --user uid:psw -F file=@locfile file=Upload http://server ip/dir/
OR
curl --user uid:psw --form file=@locfile --form file=Upload http://server ip/dir/