Questions tagged [http-status-code-303]

Redirect to a new URI after a POST

Per Wikipedia:

The HTTP response status code 303 See Other is the correct way to redirect web applications to a new URI, particularly after an HTTP POST has been performed, since RFC 2616 (HTTP 1.1).

This response indicates that the correct response can be found under a different URI and should be retrieved using a GET method. The specified URI is not a substitute reference for the original resource.

45 questions
14
votes
4 answers

joomla BASE HREF uses HTTP instead of HTTPS

I wanted to change my site from http to https. Always. So I configured my apache accordingly. Now when I enter the URL of my site (https://steamnet.de) it loads the index site fine but none of the referenced elements (CSS, images etc.) It seems to…
Angelo Fuchs
  • 9,825
  • 1
  • 35
  • 72
14
votes
4 answers

React to 303 status code in jquery ( Prevent from redirecting)

when I send requests to a certain server, a 303 response will come, followed by the requested response in combination with a 200 status code. Funny thing is that I only see this on my developer console's network view. When checking the statuscode…
keinabel
  • 1,002
  • 3
  • 15
  • 33
10
votes
1 answer

Is HTTP 303 considered harmful for asynchronous operations?

While researching RESTful APIs for asynchronous operations I ran across the following design pattern: POST uri:longOperation returns: HTTP 202 Location: uri:pendingOperation GET uri:pendingOperation returns: If operation is running Return a…
Gili
  • 86,244
  • 97
  • 390
  • 689
9
votes
2 answers

How to create 303 Response in asp.net

Does anyone know how to redirect current request in ASP.NET using http status code 303 (SeeOther). Code snippets are more than welcome!
ni5ni6
  • 453
  • 6
  • 13
7
votes
2 answers

Is HTTP 303 acceptable for other HTTP methods?

RESTful Web Services encourages the use of HTTP 303 to redirect clients to the canonical representation of a resource. It only discusses topic in the context of HTTP GET. Does this apply to other HTTP methods as well? If a client attempts a HTTP PUT…
Gili
  • 86,244
  • 97
  • 390
  • 689
4
votes
2 answers

303 redirection not working with Angular HTTP POST

I am calling an authentication service where I do a $http.post which returns a 303 resonse, redirecting to a get call returning the response. When I make the post call using Postman, I get the desired response but when I do an angular $http.post…
user2987371
  • 41
  • 1
  • 2
3
votes
0 answers

nginx location header rewrite using proxy_redirect directive

Running nginx on windows as reverse proxy with the below nginx.conf http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 8082; …
sthustfo
  • 1,209
  • 4
  • 19
  • 35
3
votes
2 answers

How can a java program automatically follow redirection in 303 http status code response

I tried to access this url in my java program but I got this strange message instead of the page content as I was expecting. How can I avoid this? 303 See Other
user2634655
2
votes
0 answers

Poetry cannot handle sources which redirect after setting cert

I have a pypi server, TLS server cert signed by self signed CA. I added it as a source (default, secondary = false) to my toml file using poetry source add mypypiserver https://server.url/ I added the CA cert using poetry config…
2
votes
1 answer

Redirect for HTTP POST does not work in SvelteKit

In SvelteKit I want to handle a post request and redirect to a route on success. This should be possible by sending a status code of 303 and the location header - as in the SvelteKit docs. Unfortunately, it does not work. In the Dev tools you see…
2
votes
1 answer

What to do with headers on following HTTP 303

I'm trying to determine what a client should do with headers on receiving a 303 (See Other) from the server. Specifically, what should be done with the Authorization header that was sent on the initial request? Here's the problem: the client makes a…
Paul Holden
  • 850
  • 1
  • 8
  • 24
2
votes
3 answers

How to return HTTP 303 from python?

This question comes from this one. What I want is to be able to return the HTTP 303 header from my python script, when the user clicks on a button. My script is very simple and as far as output is concerned, it only prints the following two…
1
vote
0 answers

ngrok xampp and moodle, make localhost public with port forwarding error 303 see other

i'm trying to make public my moodle site but without success. First, i tried with the port forwarding from my router but it doesn't connect to the server, so i can imagine that there is a block from my router (i also free the port from the firewall…
July
  • 516
  • 1
  • 7
  • 25
1
vote
1 answer

Flutter web not redirecting to server-side endpoint

I have created an endpoint in my server that has a status code of 303 and redirects to a prebuilt stripe checkout page. Though, when I post to this endpoint using this http package, my flutter app does not redirect to the checkout page. Instead it…
Deja
  • 91
  • 7
1
vote
1 answer

Angular-5 StripeConnect -303 Error -Response for Preflight is invalid (Redirect)

I am doing StripeConnect(Standard Account Type) with Angular 5 and Asp.NetCore. I am able to get redirected to required URL with code={} value. When I am trying to use this code in below…
Mohini
  • 19
  • 3
1
2 3