Announcement

#1 2018-10-07 16:49:19

panda
Member
2018-10-06
5

url-encode

Dear piwigo users,


After banging my head for a while, it appeared to me that the server does not interpret post requests in
url-encoded format. I was getting missing method error message because I was using --data-urlencode.

However, using plain ascii appears to work. (see example below)

While for most operations this minute detail is not important, I would imagine to obtain a session login, this is... One implication of this is that user password cannot contain special symbols.

Am I missing something?

Thanks

panda

curl -H "Content-Type: application/x-www-form-urlencoded" -X POST -c - \
     --data-ascii "username=UUUU&password=PPP&method=pwg.session.login" \
     'http://xxx.yyy.zzz/photos/ws.php?format=json'

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact