C++ networking library; aims to become part of boost; built on top of Boost asio; has HTTP client and server; and general message template.
2
votes
1answer
145 views
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 <iostream>
#include <boost/network/protocol/http/client.hpp>
#include ...
2
votes
1answer
275 views
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
...
1
vote
1answer
154 views
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 ...
1
vote
1answer
51 views
cpp-neltib (and Boost) default string type in windows
I want to be able to get HTTP request header values that contain utf8 characters in a server built with cpp-netlib. I understand that there are two kind of wrapper classes for requests and responses ...
1
vote
1answer
152 views
Using find_package to include network library from cpp-netlib-0.9.4
I am using CMake to generate my make file.
However, in one of my files, I need to use boost::network::uri::valid(uri_). So I have included the header file (#include boost/network/uri.hpp) and I am ...
0
votes
1answer
186 views
cpp-netlib install visual studio 2013
The reason that i open this topic is because the information about setting up the cpp-netlib is quite tricky.The documentation that i used to follow the steps is bit confused, i have to mention that ...
0
votes
1answer
69 views
Add a header to a cppnet-lib response object
I would like to add a header to a cppnet-lib basic_response object. However, I am getting compilation errors.
I can add a header to a basic_request as follows which compiles ok:
...
0
votes
1answer
87 views
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 ...
0
votes
1answer
154 views
can't compile c++ netlib 0.11.0 in vs2013
I'm trying to get c++ netlib 0.11.0 working with Visual Studio 2013, and I'm having quite a difficult time. I placed the netlib main folder in my visual studio folder, and I set the include directory ...
0
votes
1answer
297 views
cpp-netlib issue, terminate called after throwing an instance of 'boost::exception_detail::clone_impl
I have the below code executing in a loop which has exception handling.
using namespace boost::network;
http::client client;
http::client::request ...
0
votes
1answer
522 views
How to build cpp-netlib with MSVC (cmake)
I tried to do this in MSys git bash on my win 8.1 with MSVC 12 installed, and the latest cmake and git:
$> git clone https://github.com/cpp-netlib/cpp-netlib.git
$> cd cpp-netlib
$> git ...
-1
votes
1answer
24 views
C++ cpp-net lib not found
Here is a piece of code which is an example from cpp-netlib
#include <boost/network/protocol/http/server.hpp>
#include <string>
#include <iostream>
namespace http = ...
4
votes
0answers
391 views
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 ...
2
votes
0answers
134 views
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 ...
2
votes
0answers
169 views
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 ...
2
votes
0answers
193 views
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 ...
1
vote
0answers
16 views
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 ...
0
votes
0answers
12 views
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 \
...
0
votes
0answers
17 views
cpp-netlib, Send Binary to the HTTP server
I trying to use cpp-netlib(0.11.1) as HTTP client
I need to send binary data (zlib data) to my server.
I write the follow function
bool HttpPost(string a_ServerURL, string a_URLPramters, ...
0
votes
0answers
103 views
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 ...
0
votes
0answers
71 views
error compiling cppnetlib http post on VS2010
I'm trying to compile a simple piece of code that send an http post with cppnetlib:
#include <string>
#include <boost/asio.hpp>
#include <boost/network/protocol/http/client.hpp> // ...
0
votes
0answers
164 views
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 ...
0
votes
0answers
232 views
Using cpp-netlib on iOS Developpement
I'm building a crossplateform application and I'm trying to do some network request using cpp-netlib on ios. So far so good, until I use the call back function of cpp-netlib to avoid waiting for an ...
0
votes
0answers
171 views
Http Digest authentication and utf-8 symbols in request headers
I'm trying to implement HTTP Digest authentication in a server based on cpp-netlib and I'm not sure how to tackle the issue that the username attribute in the authorization header could contain ...
0
votes
0answers
92 views
find package Cpp-netlib
I am trying to link against cppnetlib-0.9.4 ,but I don't know what argument to pass to find_package in CMake for using the libraries?