rhgiant — 2012-05-06T14:37:49-04:00 — #1
I was wondering if you have to urlencode/urldecode a json string that would be sent/retrieved from the url (using $_GET).
chris_upjohn — 2012-05-06T19:47:20-04:00 — #2
It's a common practice to URL encode anything that is not an alphanumeric or numeric value been added to the URL as a query string, so yes i would recommend you do URL encode your JSON string.
rhgiant — 2012-05-07T03:01:01-04:00 — #3
It's going to be very long... base_64 encode/decode would help, wouldn't it? Is it good practice?
chris_upjohn — 2012-05-07T06:39:48-04:00 — #4
If the JSON string is going to get longer then say 300 characters then i would recommend you use $POST instead of $GET as it's less overhead for the browser to process
rhgiant — 2012-05-07T13:05:55-04:00 — #5