java - How do 'dereferrer' services work? -
i came across url shortening service called t1p.de offers 'derefer(r)ing' of urls. finding intriguing thought i'd seek myself. using chrome's debug/develop view [f12] tells me website using '301 - permanently moved' http redirect.
using spring wrote little controller returns redirectview
spring equivalent/way of doing http 301
redirect.
checking 1 time again using chrome's dev tools though see can still see original referer in request header.
how service and/or other service manage replace referer? how accomplish in java using java ee
technology and/or spring
?
this 'derefer(r)ing' hack. 1 easy way (and 1 found) add together header info returned html page, directing browser refresh , phone call new page:
<head> <meta http-equiv="refresh" content="0;url=http://google.com" /> </head>
java http spring-mvc java-ee
No comments:
Post a Comment