I need to request a client page on a web page and pass it to the server as a string. I tried jQuery:
$.get(
"http://example.ru/",
{name:"Joe", age:"42"},
function(data){
$.get(
"script.php",
{data:data, query:query},
)
});
});
but failed. I suspect this failed due to custom headers added by jQuery.
Can you advise me on any technique to override request headers or any js library that makes requests just like a browser?
dir01 source
share