jQuery: The Write Less, Do More JavaScript Library

AJAX POST causing 500 unimplemented method

View: New views
3 Messages — Rating Filter:   Alert me  

AJAX POST causing 500 unimplemented method

by somrandomkid :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using an AJAX POST, i.e.:

$.ajax({
     url: serviceUrl,
     async: false,
     data: params,
     type: "POST",
     dataType: "xml",

//more code here...

});

But in the browser, I see that instead of a "POST" I see an "OPTIONS"
as well as a "500 unimplemented method."

Any idea what that "OPTIONS" and "500 unimplemented method" mean?

Re: AJAX POST causing 500 unimplemented method

by dave.methvin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Any idea what that "OPTIONS" and "500 unimplemented method" mean

It sounds like somehow type got set to "OPTIONS" and when sent to the
server it justifiably returned a "500 unimplemented" HTTP error code
because it didn't know what to do with that method type. Take a look
at the "more code here" stuff and see if somehow it was changed.

Re: AJAX POST causing 500 unimplemented method

by James-279 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What is the URL of the serviceUrl? Make sure that whatever resource
it's going to it supports the POST verb.
For example, if you POST to a .html resource, some servers will not
accept it by default. You'd have to configure your server to allow it.

On Nov 3, 1:53 pm, some_random_kid <somrandom...@...> wrote:

> I am using an AJAX POST, i.e.:
>
> $.ajax({
>      url: serviceUrl,
>      async: false,
>      data: params,
>      type: "POST",
>      dataType: "xml",
>
> //more code here...
>
> });
>
> But in the browser, I see that instead of a "POST" I see an "OPTIONS"
> as well as a "500 unimplemented method."
>
> Any idea what that "OPTIONS" and "500 unimplemented method" mean?