i just would like to know if it is possible sending GET and POST AJAX requests at the same time and if it is how to do it using the XMLHttpRequest object.
Thanks all for helping 😀
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Send the request as a
POST. An HTTP request can only have one method, but nothing is stopping you from using parameters on aPOSTURL.If you
POSTtohttp://example.com/form?foo=bar, you’ll still be able to accessfooas aGETparameter.Here’s an example using jQuery:
Without jQuery, that would look more like this: