Search found 4 matches
Re: Posting file via cURL
You need the @ symbol even with full path. curl -i -H Accept:application/json -u <api name>:<api token> --basic -F file=@/home/hal/.kismet/logs/active/Kismet-20220715-08-06-07-1.wiglecsv -F donate=true https://api.wigle.net/api/v2/file/upload HTTP/1.1 400 Bad Request Server: nginx/1.20.0 Date: Fri ...
Re: Posting file via cURL
It was a CSV file from the kismetdb_to_wiglecsv command.What file did you try to upload?
I omitted the @ symbol and used the full path for the file option.
Re: Posting file via cURL
Since the old API is now gone, here's how to post a file using the new one via curl: curl -i -H 'Accept:application/json' -u <token> --basic -F file=@./<filename> -F donate=true https://api.wigle.net/api/v2/file/upload I tried that and I get the following: HTTP/1.1 200 OK Server: nginx/1.16.1 Date ...