86 questions
1
vote
1
answer
1k
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 ...
2
votes
1
answer
862
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 ...
1
vote
1
answer
239
views
Build cpp-netlib fail - not adding lib prefix
I'm trying to build cpp-netlib using cmake from cygwin.
However cmake try to find the package without the lib prefix. And -DBoost_USE_STATIC_LIBS=ON won't resolve the problem!
Here is my command line:...
1
vote
0
answers
536
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 ...
1
vote
2
answers
981
views
How to use cpp-netlib with Visual Studio 2010?
I'm trying to use cpp-netlib with Visual Studio 2010.
I've built cpp-netlib and add .lib files to my project, but I can't compile them.
--Environment
Windows 7 x64
cpp-netlib 0.11.0
boost 1.55.0
...
5
votes
1
answer
5k
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 ...
0
votes
1
answer
242
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 ...
3
votes
1
answer
2k
views
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 ...
0
votes
1
answer
3k
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 request("https://testserver....
-1
votes
1
answer
4k
views
C++ Compiler can't find cpp-netlib boost library, No such file or directory
Here is the top part of my code,
#include <iostream>
#include <istream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <...
4
votes
1
answer
14k
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 ...
2
votes
1
answer
2k
views
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"))
...
1
vote
1
answer
1k
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 ...
21
votes
2
answers
6k
views
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 ...
2
votes
1
answer
1k
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
0
answers
567
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
1
answer
105
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 ...
3
votes
1
answer
1k
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
1
answer
1k
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
1
answer
654
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
0
answers
170
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?
1
vote
1
answer
251
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 ...
2
votes
0
answers
210
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 ...
4
votes
0
answers
408
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 ...
12
votes
3
answers
6k
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
1
answer
404
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
2
answers
1k
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 ...
4
votes
1
answer
1k
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 : https://groups.google.com/forum/#!msg/cpp-netlib/G-hM25EnCWA/...
0
votes
1
answer
1k
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 = ...
4
votes
1
answer
3k
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 ...
4
votes
0
answers
2k
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 ...
10
votes
1
answer
5k
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 ...
5
votes
2
answers
4k
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
2
answers
2k
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
1
answer
2k
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
boost::network::uri::detail::...
0
votes
1
answer
348
views
Can cpp_netlib perform asynchronous concurrent requests?
cpp_netlib docs contains example HTTP client, but I see it works only in blocking mode:
http_client::response response = client.get(request);
-- this (as I guess) will stop program execution while ...