http - Why is jQuery performing an Ajax GET when I ask it to POST -


given simple html code:

<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml">     <head>         <title></title>         <script src="scripts/jquery-1.10.2.js"></script>     </head>     <body>         <script>             $.ajax({                 url: "/myurl/",                 data: "test",                 type: "post"             });         </script>     </body> </html> 

i load page fiddler observing.

the http request observed rather requested post. why?

so local copy of jquery 1.10.2 modified in way, maybe overwritting global ajax option make ajax requests using method. should update jq local copy or use cdn. ;)


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -