Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

SEARCH requests missing body #11367

Closed
cschram opened this issue May 29, 2013 · 3 comments
Closed

SEARCH requests missing body #11367

cschram opened this issue May 29, 2013 · 3 comments
Labels

Comments

@cschram
Copy link

cschram commented May 29, 2013

In PhantomJS 1.9.0 it appears that AJAX requests using the SEARCH method are missing the request body. Confirmed that jQuery is using the right data:

$(document).ajaxSend(function (e, xhr, options) {
    console.debug('\n' + JSON.stringify(options, null, 4) + '\n');
});

$.ajax({
    url: backend_url,
    type: 'SEARCH',
    data: xml_data
});

However the endpoint receives everything correctly except for the body, which is missing.

@JamesMGreene
Copy link
Collaborator

To be fair, SEARCH isn't a valid HTTP method so far as I am aware.

@cschram
Copy link
Author

cschram commented May 30, 2013

It's a part of WebDAV, RFC5323. As far as I can tell, it works much like any other HTTP verb outside of the context of WebDAV. All major browsers support it.

@stale
Copy link

stale bot commented Dec 30, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants