Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(uri == '/json/executeCode') {
- console.log(request.method);
- console.log(request.body);
- }
- $.ajax('/json/executeCode', {
- type: 'POST',
- data: JSON.stringify("lol"),
- contentType: 'text/json',
- success: function() { alert("success"); },
- error : function() { alert("failure!"); }
- });
- NodeJS:
- POST
- undefined
- Client:
- alert("failure!");
Add Comment
Please, Sign In to add comment