I am making a call through http.post in Ruby 1.8.5.
uri = ...
data = '{}'
headers = ...
http.post(uri, data, headers)
Everything seems to work except that the trailing '}' in data is not
getting posted, as determined by the network analyzer WireShark. My
entire posted data is just '{'. Is there some sort of sanitization or
choping that I am unaware of?
I am making a call through http.post in Ruby 1.8.5.
uri = ...
data = '{}'
headers = ...
http.post(uri, data, headers)
Everything seems to work except that the trailing '}' in data is not
getting posted, as determined by the network analyzer WireShark. My
entire posted data is just '{'. Is there some sort of sanitization or
choping that I am unaware of?
you could either try String#dump to automagically create escape characters, or escape the {} yourself with a backslash.
I have no clue, though, if that is feasible in regard to the receiving end.
···
--
Phillip "CynicalRyan" Gawlowski
Rule of Open-Source Programming #11:
When a developer says he will work on something, he or she means
"maybe".
On Wed, Mar 28, 2007 at 08:04:00AM +0900, Wilson Chen wrote:
I am making a call through http.post in Ruby 1.8.5.
uri = ...
data = '{}'
headers = ...
http.post(uri, data, headers)
Everything seems to work except that the trailing '}' in data is not
getting posted, as determined by the network analyzer WireShark. My
entire posted data is just '{'. Is there some sort of sanitization or
choping that I am unaware of?