I send PUT. Server returned 301 status to valid http-address(!), but next response 403 status to hhtp-address. If I copy/paste this address all works correct. Please, say me: this is correct response from server or no?

closed as unclear what you're asking by AndrolGenhald, Steffen Ullrich, Conor Mancone, schroeder Dec 5 at 22:46

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    It is not really clear what you are doing and moreover what is expected - which means one cannot say if this is correct. But a PUT resulting in a 301 will likely be followed by a GET to the new location given in the response and not another PUT, so this could explain the different responses. Still, I think that with the current content this is not a question about information security, i.e. off-topic here. – Steffen Ullrich Dec 5 at 20:06
  • No! PUT -> again PUT -> http-page with 403 status. I think this is not correct response, yes? – 1st Sentinel 31 Year Perl Hist Dec 5 at 20:12
  • Nothing in the question indicates what the correct response should be. 403 is a perfectly valid HTTP response. Again, it is unclear what really is done and what is expected (and why) and it is also off-topic. – Steffen Ullrich Dec 5 at 20:39

From HTTP/1.1 standards, 301 response from a PUT request means the origin server wants the request to be made to the redirected URI. It's perfectly valid.

403 response means you don't have access to the URI. I think you did something wrong while sending the request.

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