comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: HTTP with Simple Components: Status.Kind always File
Date: Wed, 19 Jul 2017 18:33:15 +0200
Date: 2017-07-19T18:33:15+02:00	[thread overview]
Message-ID: <oko1kk$1pf7$1@gioia.aioe.org> (raw)
In-Reply-To: <2017071918093536089-contact@flyx.org>

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

  reply	other threads:[~2017-07-19 16:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-17 18:30 HTTP with Simple Components: Status.Kind always File Felix Krause
2017-07-17 20:59 ` Dmitry A. Kazakov
2017-07-19 16:09   ` Felix Krause
2017-07-19 16:33     ` Dmitry A. Kazakov [this message]
2017-07-19 19:31       ` Randy Brukardt
2017-07-19 21:13       ` Felix Krause
2017-07-20  8:57         ` Dmitry A. Kazakov
2017-07-20 13:35           ` Felix Krause
2017-07-20 13:57             ` Dmitry A. Kazakov
2017-07-20 14:19               ` Felix Krause
2017-07-20 20:29             ` Simon Wright
2017-07-20 20:57               ` Dmitry A. Kazakov
2017-07-20 21:12                 ` Felix Krause
2017-07-21  7:14                   ` Dmitry A. Kazakov
2017-07-21  7:06                 ` Simon Wright
2017-07-21  7:15                   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox