Advertisement
Guest User

Untitled

a guest
Aug 19th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # The Request
  2. resp = requests.get('https://dataverse.harvard.edu/dvn/api/data-deposit/v1.1/swordv2/service-document', auth=('my-api-token', None), allow_redirects=False)
  3.  
  4. # The Response text
  5. '<!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