embedded / (%2F) doesn't work

35 views
Skip to first unread message

D'Arcy

unread,
Feb 25, 2010, 11:41:37 AM2/25/10
to What The Trend API
When using hte REST API such as http://api.whatthetrend.com:80/api/trend/getByName/Rain%2Fsnow/json
returns a 404 Not Found error.

Searching at whatthetrend.com for Rain/snow takes you to
http://www.whatthetrend.com/trend/Rain/snow.

The Rain%2Fsnow comes from twitter for the query string. Is there a
way to query the whatthetrend API with %2F to have it return the
expected result?

Thanks,

..darcy

--
D'Arcy Smith
CTO, TerraTap Technologies, Inc.

Ingo Muschenetz

unread,
Feb 25, 2010, 12:05:13 PM2/25/10
to what-the-...@googlegroups.com
It has to do with Apache's mod_rewrite decoding the encoded slash.

A quick workaround is to double-encode the Rain%2Fsnow trend name (to Rain%252Fsnow). That works. If anyone is familiar with a better workaround, we'd be happy to implement it.

Best,
Ingo
Reply all
Reply to author
Forward
0 new messages