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
3
votes
1 answer

Async client response with cpp-netlib?

I am considering using cpp netlib for a new project. All of the examples show reading the body of the response in a blocking manner: client::response response_ = client_.get(request_); std::string body_ = body(response_); If I construct my client…
Colin Andrews
  • 191
  • 11
3
votes
1 answer

Segmentation fault on using boost syslog and cpp-netlib

After adding boost syslog into source code, segmentation fault appears inside cpp-netlib library. I was able to prepare minimum working code snippet to reproduce the problem. #include #include…
cdovgal
  • 326
  • 3
  • 10
3
votes
1 answer

Error cross-compiling cpp-netlib for Raspbian

I've successfully compiled boost using the cross compiler (used the instructions from Installing Raspberry Pi Cross-Compiler) and it worked just fine. I moved the lib and the include into the rootfs so that cmake finds it... and when I run cmake, I…
g3rv4
  • 19,750
  • 4
  • 36
  • 58
3
votes
1 answer

Accessing request headers in cpp-netlib http server

I've begun developing an HTTP server using cpp-netlib (stable release 0.10.1) and from the available documentation I am not sure how to access HTTP request headers in a server handler. I am aware that it can be done using the wrapper like this: void…
Rudolfs Bundulis
  • 11,636
  • 6
  • 33
  • 71
2
votes
2 answers

Binaries for cpp-netlib

I would like to know if it is possible to get the binaries for the static library for windows (x86 and x64) now present in cpp-netlib for the version 0.9.1? Frankly it is a pain to compile this on windows for me. Thanks
lollancf37
  • 1,105
  • 3
  • 15
  • 27
2
votes
3 answers

POST request body is empty (cpp-netlib 0.13.0)

I have upgraded cpp-netlib from v0.11.0 to 0.13.0 and run into some difficulties. Previously, when a request was sent to the server, the body of the request could be read from the request object. The request body is now empty when I send the same…
ksl
  • 4,519
  • 11
  • 65
  • 106
2
votes
1 answer

'boost::detail::variant::visitation_impl': none of the 2 overloads could convert all the argument types

I'm not able to build two of my projects with Boost libraries 1.61.0 and Visual Studio 2015 Update 3. These projects used to build fine for years with various combinations of Visual Studio and Boost versions, and I didn't change anything in my code…
2
votes
1 answer

Error when compiling cpp-netlib source

I have installed the c++ networking library as described in the documentation and I am trying to compile the http client example manually. I am using the 0.11 version of the library. I am using this command for compilation: g++ -o http_c …
cristid9
  • 1,070
  • 1
  • 17
  • 37
2
votes
1 answer

CMake can't find cpp-netlib libraries

I recently started learning CMake and have decided to use it with an old project I was working on. The project has cpp-netlib, boost and Openssl as dependencies. Here is the working CMakeLists.txt file I came up with. CMAKE_MINIMUM_REQUIRED(VERSION…
Jem4687
  • 331
  • 1
  • 2
  • 17
2
votes
0 answers

Headers when handling response to async request

I'm using cpp-netlib library to create HTTP GET requests, the documentation shows this function call: response_ = client_.get(request_, callback) where the signature of callback should be void(iterator_range const &,…
Bob Jansen
  • 1,215
  • 2
  • 12
  • 31
2
votes
1 answer

Why does my simple cpp-netlib program take so long to compile?

I recently started learning cpp-netlib and am testing out one of netlibs example programs #include #include int main() { using namespace boost::network; http::client client; …
Jem4687
  • 331
  • 1
  • 2
  • 17
2
votes
0 answers

cpp netlib with old c++ compiler

I am using c++ 03 compiler with cpp-netlib and on installation it gives the following error from CMake.txt No advanced standard C++ support (-std=c++11 not defined) Isnt there any support of cpp-netlib on cpp03? Their documentation doesnt seem to…
xCoder
  • 53
  • 5
2
votes
1 answer

Running cpp-netlib in Xcode 6 - compiles but crashes on run

I have installed boost and cpp-netlib and successfully ran all tests. I can compile the following example from the command line with the following options: clang++ -o test main.cpp \ -I/path.../cpp-netlib-0.11.1-final \ -I/path.../boost_1_57_0…
biononic
  • 95
  • 6
2
votes
1 answer

How to stream an image from Python to C++ using Apache Thrift

How could I stream files(images) using Apache Thrift? I have searched a lot about Thrift and did not find any well written documentation regarding to it. Why did Facebook open sourced this project without docs?
Mahdi
  • 223
  • 2
  • 12
2
votes
1 answer

How to build CPP-NETLIB libraries on Windows using Code::Blocks or MinGW

Cpp-netlib's "getting started" talks about building libraries where the result should be: cppnetlib-client-connections.lib cppnetlib-server-parsers.lib cppnetlib-uri.lib It also provides CMakeLists.txt to do it, but how would I build this in…
jave.web
  • 13,880
  • 12
  • 91
  • 125