mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 23:28:33 -04:00
19 lines
381 B
JavaScript
Executable File
19 lines
381 B
JavaScript
Executable File
var settings = {
|
|
async: true,
|
|
crossDomain: true,
|
|
url: 'http://mockbin.com/har?foo=bar&foo=baz&baz=abc&key=value',
|
|
method: 'POST',
|
|
headers: {
|
|
cookie: 'foo=bar; bar=baz',
|
|
accept: 'application/json',
|
|
'content-type': 'application/x-www-form-urlencoded'
|
|
},
|
|
data: {
|
|
foo: 'bar'
|
|
}
|
|
};
|
|
|
|
$.ajax(settings).done(function(response) {
|
|
console.log(response);
|
|
});
|