Just a little POST/GET FYI ...
Beau Schwabe
Posts: 6,566
Perhaps this is old news to some of you, but it hung me up last weekend...
When you post or get data i.e. ....
http://{Some valid IP address}:{Some valid Port Number}/{text}
... some characters in the 'text' can cause problems. for example a # (pound sign) if you send something like...
http://192.168.0.1:3333/This is a test
... it will come through just fine, however if you send something like ...
http://192.168.0.1:3333/This is test #5
... the # plus anything to the right of it will truncate, so on the receiving end all you see is...
This%20is%20test%20
... Anyway, just an FYI I thought I would share, and my own suspicion why I'm having similar issues with 'Smart Phone' data submissions. I'll setup a test page this weekend to show you an example.
When you post or get data i.e. ....
http://{Some valid IP address}:{Some valid Port Number}/{text}
... some characters in the 'text' can cause problems. for example a # (pound sign) if you send something like...
http://192.168.0.1:3333/This is a test
... it will come through just fine, however if you send something like ...
http://192.168.0.1:3333/This is test #5
... the # plus anything to the right of it will truncate, so on the receiving end all you see is...
This%20is%20test%20
... Anyway, just an FYI I thought I would share, and my own suspicion why I'm having similar issues with 'Smart Phone' data submissions. I'll setup a test page this weekend to show you an example.
Comments
Can't you just send %23 for the "#"?
-Phil
-Phil
HTML FireFox
IE
DataToSend = DataToSend.replace(/#/g,"%23");
The code below would normally live on a traditional server and send data to a custom server such as the Spinneret.