Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The Request
- resp = requests.get('https://dataverse.harvard.edu/dvn/api/data-deposit/v1.1/swordv2/service-document', auth=('my-api-token', None), allow_redirects=False)
- # The Response text
- '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>302 Found</title>\n</head><body>\n<h1>Found</h1>\n<p>The document has moved <a href="https://dataverse.harvard.edu/dvn/api/data-deposit/v1.1/swordv2/service-document">here</a>.</p>\n<hr>\n<address>Apache/2.2.15 (Red Hat) Server at dataverse.harvard.edu Port 443</address>\n</body></html>\n'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement