Wpost$ and ptsv2.com

If doesn't fit into any other category ....
Post Reply
bugs
Posts: 142
Joined: Mon Feb 08, 2021 10:10 pm
Location: Scotland
Has thanked: 44 times
Been thanked: 50 times

Wpost$ and ptsv2.com

Post by bugs »

The F2 help on wpost$ uses ptsv2.com which is giving 404 errors (or site down).

I should like to use wpost$ to upload a file to my local network server. I can use FTP without problem but then have to copy the file elsewhere.
I can write simple php scripts on the server.
Is it possible to just use wpost$ to send a file?
User avatar
cicciocb
Site Admin
Posts: 1899
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1269 times
Contact:

Re: Wpost$ and ptsv2.com

Post by cicciocb »

It seems that the site ptsv2.com is down actually.

Yes, it is possible to send text blocks using wpost$ but, as you already said, you need a php code running on your server to accept them.

edit
you can test using https://httpbin.org/ instead of ptsv2.com
User avatar
Fernando Perez
Posts: 378
Joined: Mon Feb 15, 2021 10:09 pm
Location: Santander (Spain)
Has thanked: 195 times
Been thanked: 267 times

Re: Wpost$ and ptsv2.com

Post by Fernando Perez »

bugs, check [Local Link Removed for Guests]. Maybe it will help you. It's more geared towards a remote server and feeding a MySQL database, but I think it can be adapted to what you need on a local server.
I have been using a similar system for a real application for more than a year and it works satisfactorily.
bugs
Posts: 142
Joined: Mon Feb 08, 2021 10:10 pm
Location: Scotland
Has thanked: 44 times
Been thanked: 50 times

Re: Wpost$ and ptsv2.com

Post by bugs »

Thanks to both for the quick replies.

cicciocb - I am now experimenting with httpbin.org using wpost$.
To explain a bit more, my ESP32 creates three csv files every two hours and it would help to send these to my NAS for safe keeping and manipulation.
The files each have 3 columns and up to 800 rows.

Fernando - I missed your original post during my searches but see that we finished at the same nerds website for information.
I am using that method for sending my readings to a database as they arrive in a serial stream. The method works well and it has only taken one week to get it working. :) But it is very intensive and I am having overflows elsewhere in the ESP32-CAM. There are less overflows just appending to a disk file with the aim of doing a quick(?) file upload later.
Post Reply