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
21
votes
2 answers

Https server with cpp-netlib

How can one use cpp-netlib to implement a HTTPS-server? cpp-netlib can be used as a HTTP server (see service selector, handler and main in my example code). With boost::asio setting up a SSL connection is not too hard (see my attempt at…
Kasper van den Berg
  • 8,951
  • 4
  • 48
  • 70
19
votes
1 answer

Where is a delay in an HTTP POST coming from?

I am developing a web service on Ubuntu 14.04 in C++ using cpp-netlib in asynchronous mode. The service needs to respond to data sent over HTTP POST in the message body. I am observing poor performance when receiving input larger than 1K, and I want…
Randall Cook
  • 6,728
  • 6
  • 33
  • 68
12
votes
3 answers

How to link against cpp-netlib

I would like to use the Library cpp-netlib for a C++ project. Therefore I installed the boost library with the help of homebrew (OS is Mac OS X 10.8). Then I downloaded cpp-netlib from the projects homepage, used cmake to create the Makefile for g++…
user1462040
  • 145
  • 2
  • 7
10
votes
1 answer

Using cpp-netlib in a C++ project under Windows

I want to use the cpp-netlib library in a C++ project of mine running on Windows. I've strictly followed the instructions under http://cpp-netlib.github.com/getting_started.html up to the "Getting CMake" section, which is where I stopped…
user181218
  • 1,655
  • 5
  • 28
  • 42
5
votes
2 answers

Building Boost on Solaris

Will Boost build in entirety on Solaris? I'd like to know if anyone has success with this (specifically Proto/Spirit) before I go and pay for a support contract to patch Sun Studio 12.2 to the latest. I get a few errors and some look to have been…
chrism
  • 561
  • 4
  • 14
5
votes
1 answer

Can't cmake cpp-netlib with Boost framework made with boost.sh script

I am trying to compile cpp-netlib with cmake. My config: OS X 10.9.1 Mavericks + Xcode 5.0.2 cpp-netlib 0.11.0 cmake 2.8.12.2 Boost 1.55.0 Because I am trying to make the whole thing work with OS X and iOS 7, I've made a Boost framework by using the…
simon
  • 550
  • 1
  • 5
  • 14
4
votes
1 answer

Is there a way to avoid error C2039: "value": Is not a member of "boost::proto"?

I'm using boost::network::uri::encoded() to encode my request URL. But when I'm building the project, I see the error: error C2039: "value": Is not a member of "boost::proto" There are four of them, and they're reported…
4
votes
1 answer

how to set a flag (cpp-netlib)

I think my question is really trivial, but I can't get it to work nonetheless std::string url="www.google.it"; boost::network::http::client client1_(_follow_redirects=true, _cache_resolved=true); boost::network::http::client::request…
Vittorio Apicella
  • 381
  • 1
  • 2
  • 14
4
votes
1 answer

cmake fails to find OpenSSL libs (cpp-netlib)

I'm trying to build the cpp-netlib on windows (8.1) with VS2013 (express). When I run cmake: C:\...\build\cmake ..\source -DCMAKE_BUILD_TYPE=Release it writes: Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system…
Nitzan Tomer
  • 155,636
  • 47
  • 315
  • 299
4
votes
1 answer

CMake - compile with /MT instead of /MD

I'm a newbie to cmake (2.8.12.1) and I'm using it on Windows to generate the project files to build cpp-netlib using Visual Studio 2012. By default it compiles with the /MDd compiler switch. I want to change it so that it uses /MTd. I followed the…
ksl
  • 4,519
  • 11
  • 65
  • 106
4
votes
0 answers

can we upload a file from put or post in netlib?

I want some server for my post or put request in cpp.I have choose netlib.. so i want to know that can we upload some xml or json file from put or post request in netlib. Can anyone answer this question. because i m struck with…
Vishnu Lal
  • 189
  • 1
  • 4
  • 13
4
votes
1 answer

How to disable Boost Concept Check

For compiling the C++ Net Lib project under Windows with Visual Studio 2008, I need to disable the Concept Check (see this thread : https://groups.google.com/forum/#!msg/cpp-netlib/G-hM25EnCWA/gdsHBaVfmggJ) The compilation works in Release but not…
Gaetan
  • 488
  • 4
  • 13
4
votes
1 answer

Example on how to do asynchronous http get request using cpp-netlib

I'm trying to do asynchronous http requests using cpp-netlib. I couldn't find any examples of this in the documentation, as a result can't even get it to compile. My current attempt is below (with compilation errors in the comments). Any hints how…
Arman
  • 1,074
  • 3
  • 20
  • 40
4
votes
0 answers

Alternatives to cpp-netlib to do asynchronous http requests in C++

I spent half of the day today unsuccessfully trying to install cpp-netlib on Mac OS X (the goal is to implement asynchronous http requests in C++). When I do 'make' to build and run the tests, I have lots of "no matching constructor" errors coming…
Arman
  • 1,074
  • 3
  • 20
  • 40
3
votes
1 answer

https client get with cpp-netlib using a client certificate and password

I am trying to use cppnetlib, or even the boost asio libraries to connect to do a simple url get and pull the resulting page down. I have gotten it to work with http, and even https usign cppnetlib but I need to supply a client certitifcate that…
Jim
  • 2,034
  • 2
  • 15
  • 29
1
2 3 4 5 6