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

learn more… | top users | synonyms

1
vote
1answer
13 views

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 ...
0
votes
0answers
61 views
+50

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")) ...
0
votes
1answer
48 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 ...
0
votes
0answers
10 views

Netbeans recompiling source always even if no changes made

I am using cpp-netlib to make some webserver using C++/BOOST/MinGW compiler. I am developing under Windows XP with Netbeans 7.4 Whenever I click Run or Debug Netbeans recompiling everything. Like I ...
2
votes
0answers
59 views

Https server with cpp-netlib

How can one use cpp-netlib to implement a HTTPS-server? cpp-netlib can be used as HTTP server (see service selector, handler and main in my tryout code). With Boost::asio seting up an SSL connection ...
0
votes
1answer
18 views

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 ...
0
votes
0answers
62 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 ...
1
vote
1answer
26 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 ...
0
votes
0answers
120 views

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 ...
0
votes
1answer
99 views

libboost seems to be incomplete

I'm trying to install netlib on my ubuntu 12.04. Since it needs libboost to be installed I installed libboost using: sudo apt-get install libboost-all-dev but here is the problem when I'm trying to ...
2
votes
1answer
134 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 ...
0
votes
0answers
52 views

How to force certificate validation in cpp-netlib when making HTTPS request?

We use cpp-netlib in our multi-platform code (iOS and Android) to perform HTTPS requests but we could not find a way to perform server's certificate validation. The documentation on the site is scarce ...
0
votes
0answers
126 views

How to use cpp-netlib to send SOAP message

I'm trying to use cpp-netlib to send SOAP request to a specific server. here is what i tried but this peace of code not giving any result. I think some mismatch with header setting. Please help if ...
0
votes
0answers
64 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?
0
votes
0answers
78 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
0answers
78 views

Linking error with boost netlib in cygwin

I see other people have asked questions about linking, but I don't understand how to apply the answer. So, my situation is below. What should I do to correct the linking error. Source: #include ...
1
vote
0answers
116 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 ...
1
vote
0answers
102 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 ...
3
votes
1answer
899 views

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 ...
0
votes
1answer
107 views

Weird multithreading issue

I have a constructor that creates two threads of a server (I am using the cpp-netlib library). The weird problem that I am getting is that even though I don't call servlet1.join() and servlet2.join() ...
0
votes
1answer
224 views

cpp netlib headers

I am having some trouble understanding the cpp netlib documentation. member name type description headers vector<header> Vector of headers. A header is a struct of type ...
2
votes
1answer
194 views

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 : ...
0
votes
1answer
498 views

Unable to send post request via cpp-netlib

I am using cpp-netlib-0.9.4 with Visual Studio 2010. I have a function make_header which is like this: http::client::request* Interface::make_request_header(const string& uri) { string url = ...
1
vote
1answer
540 views

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 ...
3
votes
0answers
775 views

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

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 ...
7
votes
1answer
1k views

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 ...
3
votes
2answers
2k views

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 ...
2
votes
2answers
902 views

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 ...
1
vote
1answer
952 views

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 ...