Forum - View topic
API does not decode query values correctly




Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions
View previous topic :: View next topic  
Author Message
nadir-seen-fire



Joined: 05 May 2009
Posts: 75

PostPosted: Mon Sep 09, 2013 8:28 am Reply with quote
I was building something personal that uses ANN's api and through a bug in it realized that ANN's api doesn't decode query string values in the normal way.

Specifically the + that is. In the query string both + and %20 can represent a. And the url encoding functions used in most programming languages will prefer to output a + instead of a %20 if they know they are encoding for something in the query string.

Unfortunately it looks like ANN's API isn't correctly turning + in the query string into a space and as a result these two API requests which should refer to the exact same resource give different results (or rather one of them doesn't return anything at all):
Back to top
View user's profile Send private message Visit poster's website
Dan42
Chief Encyclopedist


Joined: 02 Jan 2002
Posts: 3189
Location: Montreal

PostPosted: Tue Sep 10, 2013 7:40 am Reply with quote
fixed
Back to top
View user's profile Send private message Visit poster's website AIM Address My Anime My Manga
nadir-seen-fire



Joined: 05 May 2009
Posts: 75

PostPosted: Tue Sep 10, 2013 9:14 am Reply with quote
Great. It's a bit of a side request, but it would be nice if some of the related anime/manga stuff was exposed in the API like sequels, remakes, side-stories, adaptions, etc...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group