Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-06 Thread Валерий Котов
2014-09-05 20:53 GMT+03:00 Julian Reschke julian.resc...@gmx.de: On 2014-09-05 19:34, Валерий Котов wrote: ... Thank you everybody for responses! Out of curiosity - do you have a use case where you need to be able to send OPTIONS *? Unfortunately, I can't think of any specific use case

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-05 Thread Mark Nottingham
This is the most up-to-date reference, btw: http://httpwg.github.io/specs/rfc7230.html#asterisk-form On 4 Sep 2014, at 9:32 pm, Валерий Котов kotov.val...@gmail.com wrote: Greetings everybody! My name is Valery. I'm currently working on adding support for OPTION http request method for

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-05 Thread Anne van Kesteren
On Thu, Sep 4, 2014 at 11:09 PM, Mark Nottingham m...@mnot.net wrote: Huh? OPTIONS * isn’t exactly common, but it’s very much OK by HTTP… Sure. It's not supported by XMLHttpRequest. If you pass * as URL argument, you'll get a request for /baseURL/*. And since it's not supported by

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-05 Thread Mark Nottingham
On 5 Sep 2014, at 11:03 am, Anne van Kesteren ann...@annevk.nl wrote: On Thu, Sep 4, 2014 at 11:09 PM, Mark Nottingham m...@mnot.net wrote: Huh? OPTIONS * isn’t exactly common, but it’s very much OK by HTTP… Sure. It's not supported by XMLHttpRequest. If you pass * as URL argument,

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-05 Thread Anne van Kesteren
On Fri, Sep 5, 2014 at 10:06 AM, Mark Nottingham m...@mnot.net wrote: That would be foolish, since browsers don’t have an exclusive license to emit HTTP requests. No, but only browsers are capable of executing untrusted requests within the current network of the user. But if OPTIONS * is not

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-05 Thread Julian Reschke
On 2014-09-05 10:03, Anne van Kesteren wrote: On Thu, Sep 4, 2014 at 11:09 PM, Mark Nottingham m...@mnot.net wrote: Huh? OPTIONS * isn’t exactly common, but it’s very much OK by HTTP… Sure. It's not supported by XMLHttpRequest. If you pass * as URL argument, you'll get a request for

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-05 Thread Julian Reschke
On 2014-09-04 20:32, Валерий Котов wrote: Greetings everybody! My name is Valery. I'm currently working on adding support for OPTION http request method for XMLHttpRequest class inside Qt framework. According to RFC (http://tools.ietf.org/html/rfc2616#page-52) request uri can contian asterisk

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-05 Thread Валерий Котов
2014-09-05 13:28 GMT+03:00 Julian Reschke julian.resc...@gmx.de: On 2014-09-04 20:32, Валерий Котов wrote: Greetings everybody! My name is Valery. I'm currently working on adding support for OPTION http request method for XMLHttpRequest class inside Qt framework. According to RFC

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-05 Thread Julian Reschke
On 2014-09-05 19:34, Валерий Котов wrote: ... Thank you everybody for responses! Out of curiosity - do you have a use case where you need to be able to send OPTIONS *? Unfortunately, I can't think of any specific use case except getting general server settings. For example (from

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-04 Thread Anne van Kesteren
On Thu, Sep 4, 2014 at 8:32 PM, Валерий Котов kotov.val...@gmail.com wrote: Could you please tell if it is possible to send OPTIONS * http request by using XMLHttpRequest class? That is not supported. I suspect adding support for it might create a security vulnerability for servers as it is not

Re: XMLHttpRequest. Support for OPTIONS * method.

2014-09-04 Thread Mark Nottingham
Huh? OPTIONS * isn’t exactly common, but it’s very much OK by HTTP… On 4 Sep 2014, at 11:47 pm, Anne van Kesteren ann...@annevk.nl wrote: On Thu, Sep 4, 2014 at 8:32 PM, Валерий Котов kotov.val...@gmail.com wrote: Could you please tell if it is possible to send OPTIONS * http request by