Goodreads Developers discussion

17 views
bugs > 403 Error - sometimes

Comments Showing 1-3 of 3 (3 new)    post a comment »
dateUp arrow    newest »

message 1: by Mendel (new)

Mendel Storch | 2 comments Below are two URLS one works in a PHP script and the other doesn't. Can someone tell me what I am missing?

I thought it might be that my server is restricting access to the IP but that does not appear to be the case. (However, if there is a list of IPs I should white-list - please let me know)


This URL works in browser address bar and within a PHP script:

http://www.goodreads.com/search.xml?k...

This URL works in the browser address bar BUT NOT in a PHP script:

http://www.goodreads.com/api/author_u... cassidy?&format=xml&key=zjytz


message 2: by Jeff (new)

Jeff (jeffwong) | 75 comments Mod
There's a space in your URL between "dakota" and "cassidy". I think you might need to explicitly escape the space as "%20"


message 3: by Mendel (new)

Mendel Storch | 2 comments The example I based this on did not escape the space, but you are correct - that is what was needed. I guess working during the holidays numbs the brain.

Thanks for your help @jeff


back to top