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!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: HTTP with Simple Components: Status.Kind always File Date: Wed, 19 Jul 2017 18:33:15 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <2017071720305687401-contact@flyx.org> <2017071918093536089-contact@flyx.org> NNTP-Posting-Host: 92.210.29.131 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: gioia.aioe.org 1500482007 58855 92.210.29.131 (19 Jul 2017 16:33:27 GMT) X-Complaints-To: abuse@aioe.org NNTP-Posting-Date: Wed, 19 Jul 2017 16:33:27 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Cache: gioia.aioe.org 1500482007 58855 92.210.29.131 1500482007 92.210.29.131 1287 898 Z1bafMn+nzoiJC4MrAX/Ow 92.210.29 1 0 Content-Language: en-US In-Reply-To: <2017071918093536089-contact@flyx.org> Xref: news.eternal-september.org comp.lang.ada:47453 Date: 2017-07-19T18:33:15+02:00 List-Id: On 2017-07-19 18:09, Felix Krause wrote: > 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. How do you know? How exactly looks the request? If you don't trust the integrated trace you can use Wireshark to be sure. > For example: > > curl http://localhost:8088/ > > This still yields a File as Status.Kind. I must see what is sent from the client in order to tell if it is a bug or correct behavior. A command line tells nothing. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de