Questions tagged [cpp-netlib]

C++ networking library; aims to become part of boost; built on top of Boost asio; has HTTP client and server; and general message template.

Cpp-netlib (http://cpp-netlib.org/) is a networking library.

It calls itself "a collection of Open-Source libraries for high level network programming"; its abstraction level is at the bottom of the OSI application layer. The library provides a general message template, http request and response messages built using the general message template, and HTTP client and (in proces) server code.

Cpp-netlib aims to become part of Boost. It relies havily on meta programming (i.e. templates). Cpp-netlib is built in top of Boost::ASIO (the asynchronous I/O library within Boost).

86 questions
2
votes
1 answer

cpp-netlib request with uri::uri

I'm using the cpp-netlib version 0.11 with boost 1.55 and want to create a request object with these lines: #include #include #include #include…
Roby
  • 2,011
  • 4
  • 28
  • 55
2
votes
1 answer

build cpp-netlib shared library

I'm trying to use boost and cpp-netlib. The static library of cpp-netlib is about 40m(release version), even linking to a small helloworld could be very slow. So I'd like to try dynamic dll+ import lib when developing, how can I build dll+lib for…
aj3423
  • 2,003
  • 3
  • 32
  • 70
2
votes
1 answer

send http request from tornado client to asynchronous cpp-netlib server

I have a http client that I wrote in python in tornado framework: http_client = httpclient.HTTPClient() request = httpclient.HTTPRequest("http://127.0.0.1:8000", method='PUT', body=str("data")) response = http_client.fetch(request) on the other…
soroosh.strife
  • 1,181
  • 4
  • 19
  • 45
2
votes
1 answer

How close http connection with cpp-netlib?

When running the Cpp-netlib (version 0.11-rc1) [edit (addition)] code copied from [/edit] HttpClient example does not finish. I assume it's because the connection is left open. 1. Is my assumption correct? 2. Does the connection have to be closed…
Kasper van den Berg
  • 8,951
  • 4
  • 48
  • 70
2
votes
1 answer

Why does Eclipse hang when indexing Boost and cpp-netlib headers?

I've got both the Boost and cpp-netlib libraries installed on my Win7 machine. In Eclipse, under my C++ project settings, I add the following include directories C:\boost_1_53_0 C:\cpp-netlib-0.10.1 I then include the following header #include…
JLindsey
  • 700
  • 2
  • 7
  • 14
2
votes
0 answers

Error building boost on Mountain lion using gcc-mp-4.7 installed from macports

I've run into a very very hairy issue. My end goal is to build the cpp-netlib. cpp-netlib uses C++-11, it was throwing linker errors with original boost build in my machine. The reason I'd built boost using the default gcc installed in my machine,…
subramanian
  • 1,005
  • 2
  • 11
  • 21
1
vote
1 answer

Unresolved external symbol error when compiling cpp-netlib v0.9

I am trying to build the cpp-netlib library from Visual Studio 2010 but get the following linker error: error LNK2019: unresolved external symbol "bool __cdecl boost::network::uri::detail::parse_uri_impl(class boost::iterator_range,class…
David Hall
  • 32,624
  • 10
  • 90
  • 127
1
vote
0 answers

HTTPS client with cpp-netlib - sslv3 alert handshake failure

I am trying to set up a simple HTTPS client in C++ to test some features against the Reqres API. I am using cpp-netlib as the main C++ network library. Based on the examples provided in the documentation, I wrote some code to perform some GET…
mohabouje
  • 3,867
  • 2
  • 14
  • 28
1
vote
2 answers

How to build static library .a for ARM using cross compiler?

I was trying to compile statically cpp-netlib and rpclib for ARM device.(Same as ZEDboard) Everything i did is changed the compiler and system settings in CMakeLists.txt file. set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR arm) …
Nick Kashkin
  • 35
  • 2
  • 9
1
vote
0 answers

How to properly wait for the async http request with no "Connection: close" header to complete in the cpp-netlib?

I'm opening a long lived connection with a remote server. Server send me updates in this connection for a long time. So, I do not use the Connection: close header as suggested in cpp-netlib docs in my request. And I use a streaming body handler to…
olegabr
  • 443
  • 1
  • 4
  • 13
1
vote
2 answers

Cannot convert boost::asio::netdb::errors to std::error_code

I'm trying to compile this code (taken from the cpp-netlib documentation): #include #include int main(int argc, char *argv[]) { using namespace boost::network; if (argc != 2) { …
Spook
  • 301
  • 4
  • 9
1
vote
1 answer

cpp-Netlib with Boost Mac OSX seg fault when using HTTP Client body

I recently started learning cpp-netlib which requires Boost and am running into some issues when trying to compile one of the cpp-netlib examples from there site http://cpp-netlib.org/0.11.2/examples/http/http_client.html. I have never used Boost…
Jem4687
  • 331
  • 1
  • 2
  • 17
1
vote
1 answer

querying the request of cpp-netlib HTTP server

A question similar to (but more specific than) this unanswered question about headers in cpp-netlib HTTP server side. This is with using cpp-netlib 0.11.1 on Linux/Debian/Sid/x86-64 with clang++ 3.5 or g++ 4.9 in -std=c++11mode. BTW, I also asked…
Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547
1
vote
0 answers

Building cpp-netlib from visual studio

I'm trying to build the cpp-netlib on windows using visual studio 2013 (express). I tried to do so from two sources: 1. Downloaded the archive from the site, ran cmake, opened the solution file in VS2013 and then build. 2. Cloned the repo from…
Nitzan Tomer
  • 155,636
  • 47
  • 315
  • 299
1
vote
1 answer

Add Access-Control-Allow-Origin option in cpp-netlib

I tried to implement HTTP server with cpp-netlib. Actually I could succeed to create a simple http server. But now I don't know how to set Access-Control-Allow-Origin option to my server. This problem was found when I tried to access this server via…
jef
  • 3,890
  • 10
  • 42
  • 76