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
0
votes
1 answer

Create See Other response from web api

I have a button on website to download a pdf. On click of it, I will hit a POST API which will create a lead and redirect to another url (pdf location) on success. I am using SeeOther Http status (303) for this. How can I return 303 response from…
ctor
  • 805
  • 1
  • 10
  • 26
0
votes
1 answer

Lost Header during 303 answer

I have the following Handler, who redirects my request to another handler(LoginHandler): public class ValidationHandler implements HttpHandler { @Override public void handle(HttpExchange httpExchange) throws IOException { // Serve…
0
votes
1 answer

Rest assured throws ClientProtocolException when the status code is 303

In my workplace we are using rest assured 2.9 to send rest API requests, I'm getting a valid output containing both response body and status code even if the status code is 500,402. BUT the only case this isn't working is error 303 See Other, I'm…
0
votes
1 answer

difference between CRoute and Jroute in Joomla 3

what difference between CRoute and Jroute in Joomla 3. $mainframe = JFactory::getApplication(); I have $mainframe->redirect(CRoute::_('index.php?option=com_community&view=register&task=registerProfileType', false)); this redirect, and it dosent…
Vahe Galstyan
  • 1,681
  • 1
  • 12
  • 25
0
votes
1 answer

HTTP 303 See Other - Content

If I want to return a status code of 303 See Other when a client POSTs data that already exists, am I allowed to return that data in the content (body) of the response (in addition to setting Location), or must the client then GET the Location? I…
Alex Rothberg
  • 10,243
  • 13
  • 60
  • 120
0
votes
1 answer

Ajax request 303 response CORS issue

I'm trying to imitate a form request with jquery. The form logs in to a server which returns a 303 response and redirects the user to the main page. This works fine when using the form. However, when trying to do it with an ajax call I get the…
Boivie
  • 143
  • 1
  • 9
0
votes
1 answer

paypal and php and phpbb and 303 error

I have been trying to get a system set up on my web site. I am using the CMS freeware called PHPBB and I am using a modification written by one of the people who is a fan of this system. The mod is supposed to make it such that members pay for a…
xarzu
  • 8,657
  • 40
  • 108
  • 160
0
votes
1 answer

redirect from old page - 302, 303 or 403 forbidden

I create the site about realty. It has three page about one item (flat) /flat/item/1 -main page about flat /flat/gallery/1 -photos /flat/map/1 -map Customer wants that if flat is out of stock then two pages(gallery, map) have unaccesible for…
0
votes
1 answer

Link to an external file in Joomla - work only in test

I have a very strainge issue with Joomla 2.5 and I can't find any answer. I have a page with some links. Each links are like www.myhost.com/joomla/custom_dev/myscript.php?foo=bar. myscript.php is an external script which is not a part of Joomla but…
0
votes
1 answer

Does a server have to carry out an operation before redirection?

In Is HTTP 303 acceptable for other HTTP methods? we established that HTTP 303 can be used for other HTTP methods. The Post/Redirect/Get pattern requires the server to carry out an operation before returning HTTP 303. Is the same true for HTTP PUT…
0
votes
1 answer

What HTTP status codes should be used for URI canonicalization?

RESTful Web Services encourages the use of HTTP 303 to redirect clients to the canonical representation of a resource. According to the book, HTTP 302 is was replaced by 303 ("See Other") and 307 ("Temporary redirect"). There is also HTTP 301…
-1
votes
1 answer

Angular - 303 response does not redirect

I have a problem with redirect when getting a 303 response with Location URL from a backend API endpoint. The URL can point to any subpage on my page. When the browser tries to redirect, I get an error: error: SyntaxError: Unexpected token '<', ")…
-1
votes
2 answers

POST request with sent form data does not return correct response

I´m trying to log in to a website using my account. In python code, I use: login_response = session.post('mysite.com', login_data, cookies=session.cookies) where session is a requests session object, the cookies are exactly the cookies that are…
Marie M.
  • 170
  • 1
  • 3
  • 13
-1
votes
1 answer

Avoid CORS error on HTTP 303 redirect using AWS API Gateway and Lambda Proxy

I am running into a CORS error when returning a 303 redirection status on an API request. The API is hosted on AWS API Gateway, and uses an AWS Lambda integration with a proxy response. The API request is being made when the end user clicks a button…
-1
votes
1 answer

Unwanted 303 Redirects prevent Facebook Sharing

I run a website which seems to have a problem with 303 Redirects. The CMS is TYPO3 9.5.24. I don't know where the redirects are coming from. Unfortunately the 303 redirects are not listed in the network tab of the console (testet Chrome, FF). Why…
1 2
3