Encoding bug in pinging customized URL
The cuszomized URL method has a bug. Here's the raw socket I captured:
POST / HTTP/1.1
Host: 202.115.22.208:8000
Accept: */*
X-Ping-Server: Ping.fm
Content-Length: 289
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----------------------------70f7ecef425b
------------------------------70f7ecef425b
Content-Disposition: form-data; name="method"
status
------------------------------70f7ecef425b
Content-Disposition: form-data; name="message"
啊。crap
------------------------------70f7ecef425b--
The `multipart/form-data` has no charset declared, and it's not url-encoded.
And if I posted some CJK characters via Ping.fm customized URL, the characters is not displayed correctly. I think it's an encoding problem.
POST / HTTP/1.1
Host: 202.115.22.208:8000
Accept: */*
X-Ping-Server: Ping.fm
Content-Length: 289
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----------------------------70f7ecef425b
------------------------------70f7ecef425b
Content-Disposition: form-data; name="method"
status
------------------------------70f7ecef425b
Content-Disposition: form-data; name="message"
啊。crap
------------------------------70f7ecef425b--
The `multipart/form-data` has no charset declared, and it's not url-encoded.
And if I posted some CJK characters via Ping.fm customized URL, the characters is not displayed correctly. I think it's an encoding problem.
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?OK, some test data for Sean :-)
I tried to post the following data, just two Chinese words:
中文
to Ping.fm
(written in Python)
>>> #The byte stream representation, GBK encoded
>>> '中文'
'\xd6\xd0\xce\xc4'
>>># The unicode representation, U+4E2D and U+6587
>>> u'中文'
u'\u4e2d\u6587'
>>> #The UTF-8 encoded representation of the two characters
>>> u'中文'.encode('utf-8')
'\xe4\xb8\xad\xe6\x96\x87'
>>>
This is what Ping.fm POST'ed to customized URL
\xc3\xa4\xc2\xb8\xc2\xad\xc3\xa6\xc2\x96\xc2\x87
Which should be
\xe4\xb8\xad\xe6\x96\x87
instead
Fix it Sean ! -
Inappropriate?This issue is resolved. Thanks!
-
Inappropriate?Now it's truely solved.
haha
1 person says
this solves the problem
Loading Profile...



