On Tue, Dec 15, 2015 at 11:05 PM, Simon Charette <[email protected]> wrote: > Hi Larry, > > It's more of a JavaScript question but my first guess would be > you'd need to use the `type` option instead of `method` because > you are using an old version of jQuery?
That was it. Thank you so much!! > Le mardi 15 décembre 2015 17:25:12 UTC-5, [email protected] a écrit : >> >> I am sending an ajax POST request like this: >> >> $.ajax({ >> url: url, >> method: 'POST', >> dataType: "json", >> data: { >> recipe: recpie >> } >> }) >> >> But the request is being sent as a GET: >> >> Request URL: http://127.0.0.1/api/update_measbox?recipe=MALBHDPOR >> Request Method: GET >> Status Code:200 OK >> Remote Address:127.0.0.1:80 >> >> Any ideas as to why this is happening and how I can get it sent it as a >> POST? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY6265icxy9o-G2fd3Q0zi3f%2BjWMwVhGet5MePj%2B4wSg-g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

