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