rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: padmavathinedunuri on January 30, 2020, 09:05:33 AM

Title: Is there a way to upload files to HFS server using adb commands.
Post 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!


Title: Re: Is there a way to upload files to HFS server using adb commands.
Post by: rejetto on January 30, 2020, 11:52:14 AM
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.
Title: Re: Is there a way to upload files to HFS server using adb commands.
Post by: padmavathinedunuri on January 30, 2020, 04:19:53 PM
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>
Title: Re: Is there a way to upload files to HFS server using adb commands.
Post by: mis on April 01, 2020, 05:40:50 AM
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/