From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer03.fr7!futter-mich.highwinds-media.com!news.highwinds-media.com!fx05.am4.POSTED!not-for-mail From: Felix Krause Newsgroups: comp.lang.ada Message-ID: <2017071918093536089-contact@flyx.org> References: <2017071720305687401-contact@flyx.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: HTTP with Simple Components: Status.Kind always File User-Agent: Unison/2.2 X-Complaints-To: abuse@eweka.nl NNTP-Posting-Date: Wed, 19 Jul 2017 16:08:14 UTC Organization: Eweka Internet Services Date: Wed, 19 Jul 2017 18:09:35 +0200 X-Received-Body-CRC: 2537298164 X-Received-Bytes: 1714 X-Original-Bytes: 1538 Xref: news.eternal-september.org comp.lang.ada:47452 Date: 2017-07-19T18:09:35+02:00 List-Id: On 2017-07-17 20:59:32 +0000, Dmitry A. Kazakov said: > > If I correctly understand the issue, the HTTP request line must contain > a schema. > > If you take a look into the source, parsing gets the method (e.g. GET) > then it checks (gnat-sockets-connection_state_machine-http_server.adb, > 1540): > > if Request (Pointer) = '*' then > ... > elsif Request (Pointer) = '/' then > ... > else > ... > end if; > > The first does nothing, the second creates Kind => File, the third > creates Kind => URI. So Kind = File should be when the request like > looked like: > > GET /something/somewhere... > > URI when: > > GET http://www.something/somewhere... Well, this is the behavior I expect, but I *am* querying the server with an URI containing a schema. For example: curl http://localhost:8088/ This still yields a File as Status.Kind. This is what bothers me.