Reputation: 12955
I don't quite understand why their is 2 functions ? the doc is empty but it's seam that one is to encode the http get query string
and the other is to encode the http post data string
. But as far as i Understand both must be encoded in the same way (ie: urlencoded
) so why 2 different functions ?
Upvotes: 2
Views: 473
Reputation: 36850
One of the functions escapes more unsafe characters than the other, in case any of them may be used as a delimiter in one of the transport layers the request gets transferred over.
Upvotes: 2