Hey Wim,

I don't know what to say, I gave it another test run and now it works for me as 
well.
Maybe it was a temporary problem of the website itself which was randomly 
serving the
content upon my requests and I was unlucky enough to associate it to the 
different
code versions.

Apologies for the noise on the list.
Antonio

Il 28/07/15 13:18, Wim Dumon ha scritto:
> Hey,
>
> I tested the code you posted (without any changes) and it simply works? I 
> tested on Windows.
>
> Wim.
>
>
> On 23 July 2015 at 10:47, Antonio Mancina <amanc...@mbigroup.it 
> <mailto:amanc...@mbigroup.it>> wrote:
>
>     Dear all,
>
>     Here
>
>     http://codeviewer.org/view/code:5392
>
>     you can find the code I'm asking your help about. It's the Hello example 
> from
>     the wt-3.3.4 tree, expanded with the sample code of the Wt Http Client 
> from
>     the documentation.
>
>     At line 91, there's a commented out call to a std::async. That call is 
> meant
>     as an alternative mechanism to the direct call at line 96.
>
>     The problem is that this code never gets the Http response (same thread as
>     the Wt main loop), while the std::async call (offloading the http part to
>     another thread) correctly retrieves and prints the blog content.
>
>     Please note that both pattern obviously get to the "REQUEST SENT" part.
>
>     Is there any problem with using the http client in the wt main loop? Or am
>     I doing anything else wrong?
>
>     Thanks a lot,
>     Antonio
>
>     
> ------------------------------------------------------------------------------
>     _______________________________________________
>     witty-interest mailing list
>     witty-interest@lists.sourceforge.net 
> <mailto:witty-interest@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>


------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to