Request.JSON

73 views
Skip to first unread message

Lee

unread,
Jul 10, 2012, 7:26:12 AM7/10/12
to mootool...@googlegroups.com
Possibly a silly question, but I've been using Request.JSON and am getting unexpected results, possibly due to my own tiredness and/or stupidity.

            new Request.JSON({
                url:     url
                method: 'post',
                data:  hashOfData
            }).send();

My Apache is reporting REQUEST_METHOD' => 'GET'.

Is it me?

I'm using a pretty recent version of MT, but unsure exactly which, I can't see a version number in the source file.

Thanks
Lee

Arian Stolwijk

unread,
Jul 10, 2012, 8:44:39 AM7/10/12
to mootool...@googlegroups.com
http://jsfiddle.net/Jemrp/ is doing a POST request according to the Network tab in the chrome developer console.

Ryan Mitchell

unread,
Jul 10, 2012, 8:46:33 AM7/10/12
to mootool...@googlegroups.com

If you're using url rewriting at the apache end of things then it might not be passing the post data.



Lee

unread,
Jul 10, 2012, 9:19:55 AM7/10/12
to mootool...@googlegroups.com
Thanks Ryan, Arian -- I must have inadvertently included a snippet of
old configuration file in my vhost setup. Thanks. I saw the 'post' in
Firebug, too, but it didn't register on my dumb brain...
Reply all
Reply to author
Forward
0 new messages