T
T
tincap2016-02-21 16:58:55
Computer networks
tincap, 2016-02-21 16:58:55

How to return the response code 200, but at the same time to have a redirect?

Came across one page.
It redirects to another page instantly. But at the same time, it returns a code not 301 or 302, but 200.
Content-Type: text/html
How did they manage to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nirvimel, 2016-02-21
@tincap

<html>
<head>
<meta http-equiv="Refresh" content="0; url=http://www.example.com/" />
</head>
<body>
</body>
</html>

Refresh Meta tag and HTTP refresh header

D
Dimonchik, 2016-02-21
@dimonchik2013

check with this
www.telerik.com/fiddler
you can try to do shit, but the browser does not care about these attempts, either 200 (not 201, there is a location), or one of 300 codes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question