|
Boost Users : |
Subject: Re: [Boost-users] [netlib] throwing exceptions with http_client.cpp
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2010-11-04 07:37:10
Hi Christian!
Sorry for the late response, I've been on vacation the past few days
and I'm only getting back to the mail backlog.
Please see some thoughts below:
On Mon, Nov 1, 2010 at 4:30 AM, Christian Henning <chhenning_at_[hidden]> wrote:
> Hi there, I'm trying to run http_client.cpp taken from the netlib
> examples. But unfortunately it's throwing a lot of exceptions.
>
> The line:
>
> cout << body(response) << endl;
>
> results into the following exceptions:
>
[snip]
It looks like there was an error encountered while trying to fetch the
URL you provided. It also looks like you're using the asynchronous
client implementation -- that particular implementation does throw the
exceptions that it encounters while trying to process the HTTP request
made in your program's behalf. Underneath it uses Boost.Thread
future's to wait for the data that should be retrieved by the HTTP
client.
I'm looking at the examples that come with the library -- can you be
more specific as to which one you're trying to run?
>
> here is my stack:
>
[snip]
>From that stack trace it looks like you're really using the
asynchronous client. Can you send me the source of the test_netlib.cpp
file?
>
>
> I'm using boost trunk with Visual Studio 10 compiling x64 bit code.
>
>
> Anyone any idea what going on here?
>
It's really hard to tell, but it just looks like cpp-netlib is having
a hard time fetching data from the URL you provided.
> Thanks,
HTH
-- Dean Michael Berris deanberris.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net