rejetto forum

Is there a way to upload files to HFS server using adb commands.

0 Members and 1 Guest are viewing this topic.

Offline padmavathinedunuri

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
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!




Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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.


Offline padmavathinedunuri

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
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>
« Last Edit: February 01, 2020, 08:52:15 AM by padmavathinedunuri »


Offline mis

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
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/