Questions tagged [cpprest-sdk]

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design.

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design.

https://github.com/Microsoft/cpprestsdk

200 questions
0
votes
1 answer

c++ UTF-8 string erro starting at 10xxxxxx with cpprestsdk

I have been working with the cpprestsdk for quite a bit, and have not been having this issue at all until today. I am not sure what changed, but after debugging it for awhile, I am confused as to why this is happening. When converting a utf-8 string…
mmetalfan
  • 13
  • 1
  • 5
0
votes
1 answer

Compile error when trying to compile boost and openssl (When using Websocket++ or CPPRestSDK)

I am currently trying to get a working tls websocket client running in C++ (which is a pain in the ass) and I have tried CPP Rest SDK as well as Websocket++. Both spit out a bunch of compile errors (see below). When I tried compiling it using…
StuntHacks
  • 427
  • 4
  • 15
0
votes
1 answer

Is it safe to auth user against https server?

Our application is using client/server architecture, it's running on windows. Our users need to login the client with user/password via http(or https in future), and then obtain their permissions. Previously we use http protocol, so the contract…
user1633272
  • 1,487
  • 3
  • 17
  • 33
0
votes
1 answer

CPPREST SDK on CLion using CMake on Mac

I am attempting to use the CPPREST SDK in CLion on a Mac using CMake. I'm almost there, but I cannot seem to resolve the following linker error: Undefined symbols for architecture x86_64: "_ERR_remove_thread_state", referenced from: …
N Smith
  • 91
  • 3
0
votes
1 answer

about C++ rest sdk and synchronous calls

I have started working with 'cpp rest sdk'. The key point I understood it that all requests and response are asynchronous using the means of PPL. This is fine to boost scalability and performance of the application. The question I have is weather is…
Abruzzo Forte e Gentile
  • 13,055
  • 24
  • 87
  • 163
0
votes
0 answers

Send parameters by using GET method in REST server

I have simple REST server GET method: public class PersonController : ApiController { // GET: api/Person public IEnumerable Get() { return new string[] { "value1", "value2" }; } ... } It…
vico
  • 13,725
  • 30
  • 108
  • 237
0
votes
1 answer

Running Casablanca program fails with 'openssl/conf.h' file not found on Mac OS

I am trying to setup a Http client and download some data using the example shown here. When I try to run the program, it fails saying "conf.h" is not found. $g++ -std=c++11 BingSearch.cpp In file included from BingSearch.cpp:1: In file included…
Anit
  • 255
  • 4
  • 16
0
votes
1 answer

No object generated while building MS Casablanca library for c++

Trying to build Microsoft REST SDK. Got errorious output: 1>d:\lb\cpprestsdk\release\include\cpprest\json.h(1386): error C2220: warning treated as error - no 'object' file generated 1>d:\lb\cpprestsdk\release\include\cpprest\json.h(1386): warning…
vico
  • 13,725
  • 30
  • 108
  • 237
0
votes
1 answer

Using co_await to improve readability of my PPL code

I'm worked on a CLIENT SERVER application with cpprestsdk and it works fine. Now i want to improve readability of my code (lots of .then() method) using co-routines. Using co_await the compiler,(on VC++2015 or VC++2017) will refactor the code in a…
kenhero
  • 85
  • 1
  • 10
0
votes
1 answer

http_listener casablanca doesn't bind from a public method

As title i have a client server application that works but now i try to redesign my software to be more elegant. So i created a Server class to create an http_listener and handle POST and GET method but after that it doesn't work anymore.In .h i…
kenhero
  • 85
  • 1
  • 10
0
votes
3 answers

Unable to build cpprestsdk

When I try to build cpprestsdk (https://github.com/Microsoft/cpprestsdk) in MSYS2 I get a very long list of errors. Here my enviroment: Windows 10 MSYS2 with i686-w64-mingw32 toolchain gcc 6.3.0 make 4.2.1 cmake 3.8.0 CMake $ cmake -G "MSYS…
Mark
  • 3,093
  • 4
  • 32
  • 77
0
votes
1 answer

CMake errors when building cpprestsdk

I'm trying to build cpprestsdk (https://github.com/Microsoft/cpprestsdk) under MSYS2. With pacman I installed the required dependencies: boost openssl But I get the following output: $ cmake -G "MSYS Makefiles" .. -DCMAKE_BUILD_TYPE=Release --…
Mark
  • 3,093
  • 4
  • 32
  • 77
0
votes
0 answers

Using cpprest to read binary data

I'm using Microsoft's cpprest sdk to read binary data over the internet. My variable stream below is of type concurrency::streams::istream. I'm trying to read a million rows of type struct row and process them. I see that I don't get all the bytes I…
Greg Clinton
  • 295
  • 1
  • 4
  • 15
0
votes
0 answers

CPP Rest SDK http_listener throws exception in nano server (in a Docker container)

I have a server app built witn Cpp Rest SDK which runs fine in a windowsserver code Docker container (10GB!). Now I'm trying to make it work in a nano server container to save space (1GB "only"). The app runs but then in throws an exception during…
Marco Fiocco
  • 352
  • 1
  • 15
0
votes
1 answer

400 Bad request with casablanca cpprestsdk

http_request request(methods::POST); request.headers().add(L"Content-Type", L"application/json; charset=utf-8"); request.headers().add(L"X-Requested-With", L"XMLHttpRequest"); request.set_body(body); The code above gives the following…
Herve Mutombo
  • 120
  • 1
  • 10
1 2 3
13
14