0

When I use a browser (chromium or firefox) when accessing a page I get the expected results - 200 responses and it displays the information I was expecting.

When I use curl, I get a 302 response:

$ curl http://........./Home/Healthcheck
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Views/Shared/Error.aspx aspxerrorpath=/Home/Healthcheck">here</a>.</h2>
</body></html>
0

chances are the browser is receiving the 302 as well, but then automatically following the link to the moved position. IIRC you can configure curl to do the same using the --location option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.