Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top