Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53903
| From | dieter <dieter@handshake.de> |
|---|---|
| Subject | Re: python REST API access fails after adding date to URL |
| Date | 2013-09-10 08:15 +0200 |
| References | <37fa354c-691c-45f9-ab31-807f86340e4d@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.199.1378793757.5461.python-list@python.org> (permalink) |
mahsan9861@gmail.com writes: > So the REST API calls work great with out the URL appended to the URL.However as soon as I do add the URL, because I want to retrieve the data on a daily basis, the calls fail and the server will return a 401 and say signature invalid. Apparently, you do something wrong with the signing. It is highly likely that you must append any request parameters (as a query string) to the url before you determine the signature. Alternatively, the web service you contact might not expect a query string and might therefore not consider it when it recreates the signature. Then, the signature check would fail as you and the service compute it in a different way. Check the available documentation for your web service. Does it support request parameters (query strings). What does it (or the "oauth" spec) about signature requirements for those parameters.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python REST API access fails after adding date to URL mahsan9861@gmail.com - 2013-09-09 09:36 -0700
Re: python REST API access fails after adding date to URL dieter <dieter@handshake.de> - 2013-09-10 08:15 +0200
Re: python REST API access fails after adding date to URL mahsan9861@gmail.com - 2013-09-10 07:33 -0700
Re: python REST API access fails after adding date to URL mahsan9861@gmail.com - 2013-09-10 08:42 -0700
Re: python REST API access fails after adding date to URL mahsan9861@gmail.com - 2013-09-10 08:44 -0700
csiph-web