Dmitry has sent me an update to simple components that includes a client
side http API.
This is now in git at gnoga/deps/simple_components:
<<
here is a preliminary version of a HTTP client implementation. The
implementation uses the connection server. Outgoing and incoming
connections can be shared.
The package is GNAT.Sockets.Connection_State_Machine.HTTP_Client.
A client to use from an external task is
GNAT.Sockets.Connection_State_Machine.HTTP_Client.Signaled.
Do not forget to use a handle to the connection object in order to prevent
it from being collected.
The test is ./test_components/test_http_client.adb>>
David Botton
On Thu, Apr 23, 2015 at 4:14 PM Rabbi David Botton <[email protected]> wrote:
> It is possible to do that but Gnoga itself is a server not a client for
> http/https. I will check later if in Dimitry's library (in
> gnoga/deps/simple_components) if not worth asking him for one as a feature
> request.
>
> David Botton
>
>
>
> On Thu, Apr 23, 2015 at 3:38 PM Olivier Henley <[email protected]>
> wrote:
>
>> For example, the following would retrieve information about a single
>> video:
>>
>> https://gdata.youtube.com/feeds/api/videos/videoid?v=2 (where videoid is
>> a specific youtube video id)
>>
>> Is it possible to make/handle such a request from gnoga's side?
>>
>> Thx,
>>
>> Olivier
>>
>> On Thu, Apr 23, 2015 at 7:48 AM, Rabbi David Botton <[email protected]>
>> wrote:
>>
>>> Sorry for asking so many questions lately but my application is really
>>>> into edge case territories.
>>>>
>>>> No problem at all.
>>>
>>>
>>>> 1. How should I go if I want the server to make Get request on his own?
>>>>
>>>
>>> Not sure I understand what you are looking for.
>>>
>>>
>>>>
>>>>
>>> 2. How do I get a hold on a child element, on the gnoga side, knowing
>>>> its ID?
>>>>
>>>
>>> My_Button.Attach_Using_Parent (View, ID => "my_button");
>>>
>>> David Botton
>>>
>>>
>>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list