Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.post actually performs "get". #3

Open
kindaro opened this issue Aug 30, 2015 · 0 comments
Open

client.post actually performs "get". #3

kindaro opened this issue Aug 30, 2015 · 0 comments

Comments

@kindaro
Copy link

kindaro commented Aug 30, 2015

Hi.

I have an API that responds to POST with something while to GET with 404.

This is an example with curl.

% curl -s -o /dev/null -w "%{http_code}" -F file=@example.scss http://sass2stylus.com/api
200%
% curl -s -o /dev/null -w "%{http_code}" http://sass2stylus.com/api
404%

You may kindly compare these two code specimen that employ your library:
post?
get?
-- And see for youself what each does. To me, it appears that the first one tries POST while the second one actually performs GET and this is why I receive a 404 error.

Thank you very much for your attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant