Richard Hodges

Results 201 comments of Richard Hodges

Do any of the examples do something close to what you want?

change this line: ``` http::request req{http::verb::get, target, version}; ``` to this ``` http::request req{http::verb::post, target, version}; ``` and after this line: ``` req.set(http::field::host, host); req.set(http::field::user_agent, BOOST_BEAST_VERSION_STRING); ``` add this: ```...

Looks like you've missed out a quote somewhere. You should have a reasonably good understanding of C++ before using Asio and Beast.

You need to put the "overpass query language statement in quotes don't you? I assume you're sending it to the web server for processing? `req.body("(node(51.249,7.148,51.251,7.152);

My mistake: https://www.boost.org/doc/libs/1_76_0/libs/beast/doc/html/beast/ref/boost__beast__http__message/body/overload1.html It should be: ``` req.body() = "((node(51.249,7.148,51.251,7.152);

Great, so the program compiled and is working. The server has closed the stream (the reason for which I have no chance of discerning in an issue tracker) and the...

- To be honest, that message looks as if it's been produced by a google test suite. - What makes you think the problem is "here"?

Why do you think the exception is thrown by the write? It seems to me more likely that it was thrown by the read, in response to the server closing...

OK, Boost.Asio and Boost.Beast are doing what they are supposed to be doing. I have no idea about how your web server should behave. You will need to look up...