HTTPRequest - how to Post?

Startbeitrag von John Fligg am 04.02.2018 09: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.

Antworten:

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

von Fabrice Harari - am 04.02.2018 12:19
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.