PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → HTTPRequest - how to Post?
HTTPRequest - how to Post?
Iniciado por guest, 04,feb. 2018 10:01 - 2 respuestas
Publicado el 04,febrero 2018 - 10:01
So I now have got transferring a file from the Server to the device using HttpDestination/Request.

How do I do the reverse and transfer a FILE from a device to the Server? I would have suggested running the same code on the Server but how would I define where the local directory of the device is? There must be something like HTTPPost I can run on the local device surely?

Thx.
Publicado el 04,febrero 2018 - 13:19
Hi John,

for security reasons, there is NOT...

You NEED to have something ACTIVE on the server to receive the file and store it somewhere...

So, in the case of an httprequest, that would be a REST type webservice, or more simply, a webdev AWP page...

You call THAT page in your URL and you pass the file (use the POST syntax for size reasons), the URL/page will get the file using pageparamter(post syntax) and write it at the apporpriate place on disk, IF you are authorized to post, of course, as this system allows you to verify that and not open a security risk on your server.

Best regards
Miembro registrado
102 mensajes
Publicado el 05,febrero 2018 - 13:00
John,

how about using SFTP for file transfers from your device to the server? See http://doc.windev.com/en-US/…

--
http://arnoldconsult.de
WinDev 21 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL