[jQuery] jQuery Ajax Data url encoding

[jQuery] jQuery Ajax Data url encoding


Hello,
Im doing a simple ajax request:
$.ajax({
type: 'POST',
data: 'action=link&link=' + v,
url: getLocation('?switch=link'),
dataType: 'json',
success: function(json) {
    showMessage(json.msg, json.status);
}
});
"v" in data is url like "http://localhost/pub/file?
a=0000&g=1746&p=00&s=13";
Server receive POST:
array (
'action' => 'link',
'link' => 'http://localhost/pub/file?a=0000',
'g' => '1746',
'p' => '00',
's' => '13',
)
escape(v), encodeURI(v), encodeURIComponent(v) doesn't help.
Thanks for any advice.