Does the HTTP protocol allow a 302 request header to be modified so some parameters can be set and passed to the url receiving the request?
相关问题
- Angular RxJS mergeMap types
- Axios OPTIONS instead of POST Request. Express Res
- Stop .htaccess redirect with query string
- Google Apps Script: testing doPost() with cURL
- How to instantiate Http service in main.ts manuall
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- How to get jQuery.ajax response status?
- send redirect and setting cookie, using laravel 5
- Is there a size limit for HTTP response headers on
- Is a unicode user agent legal inside an HTTP heade
- git: retry if http request failed
- fetch: Getting cookies from fetch response
- What is the definition of HTTP_X_PURPOSE?
302 is a response code, not a request header. The client will resolve the redirect by doing a new request for the new URL, so your client may add whatever headers it want to that new request.
A server wanting some data be sent along to the new URL should do so by appending it to the URL as querystring variables, for example:
http://example.com/new-url?variable=data
.If the redirect is happening within your own domain you may also set a cookie which the client may send to the new address. Cookies will only be sent inside the same domain, not if you are redirecting to somewhere else.