Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

python requests header allow redirect false

import requests
url = "http://mock.kite.com/redirect"
print requests.get(url, allow_redirects = False).text
OUTPUT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="/text">/text</a>.  If not click the link.
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #python #requests #header #redirect #false
ADD COMMENT
Topic
Name
1+7 =