PDA

View Full Version : 301 redirect to the same url



chuchi
November 26th, 2017, 06:55 PM
Hi there!


I am sending http requests using this code :


https://gist.github.com/nolim1t/126991


It works well for most of the http websites, but when I try to get this url "http://www.cplusplus.com/" the webserver performs a 301 redirection to the same url.


Isn't the webserver supposed to provide a new url in the 301 http headers? What am I doing wrong?


Thanks a lot!