Skip to content

Can't get the web-api to work #1497

Closed Answered by p-l-
duncrow asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there!

I can see two problems here:

  • the API is usually mounted under /cgi;
  • you usually need a specific Referer header value for the anti-CSRF check.

You should try something like:

curl -v http://localhost/cgi/view/count -H 'Referer: http://localhost/'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by p-l-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants