0

I am testing foursquare api. Here is the url.

https://api.foursquare.com/v2/checkins/add?venueId=123&shout=Test&broadcast=public,twitter,facebook&oauth_token=something

the problem is when I add shout="test". It works fine. But "test message" isn't working. I mean test[space]message isn't working.I tried with removing spaces,it worked.But,that can't be solution. How can I handle such thing I mean how can I send post request with shout="test messgae" with space include.

Kona Ahmed
  • 65
  • 2
  • 8

1 Answers1

0

Try using shout="test%20message"

%20 is just HTML code for a space

This is another post found on Stack Overflow that provides more detail Encoding URL Query Parameters

Community
  • 1
  • 1
Brad Faircloth
  • 337
  • 1
  • 7
  • Correct! You might add info about needing to encode values in query string values in URLs, and perhaps what code could be used to do that. – Andrew Barber Apr 04 '14 at 18:17