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

206 questions
3
votes
1 answer

cpprestsdk: handle chunked response

How should I handle chunked response using cpprestsdk? How to request the next chunk? Is there required functionality at all there? Here is how we are performing http requests: web::http::http_request…
Dmitry Katkevich
  • 883
  • 7
  • 26
3
votes
1 answer

POST issue with json service using cpprest-sdk, interfacing to jeasyui

I'm developing a web service to serve json objects to a jeasyui async tree. My HTML has the following:
Assume w.x.y.z is my server's IP address. According to…
tsm
  • 61
  • 1
  • 4
3
votes
1 answer

How to catch exceptions from multiple tasks in Casablanca

I'm trying to join two pplx tasks using the && operator of task, where both sub tasks can throw exceptions. I understand from the ppl documentation that I can catch an exception in a final, task-based continuation. This works in Casablanca as…
hrantzsch
  • 353
  • 2
  • 7
2
votes
1 answer

Boost asio crashes

I have a program using cpprestsdk for http querying and websocketpp for subscribing a data stream. The program will crash immediately(it says Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)). But if I comment either of the…
YNX
  • 511
  • 6
  • 17
2
votes
0 answers

While handling interrupt signal in 'http_listener.h' gives segmentation fault using Microsoft CppRestSdk

I am using 'https://github.com/microsoft/cpprestsdk' v2.8 and trying to handle interrupt signal but 'cpprest/http_listener.h' gives segmentation fault. If I comment out line no 3( #include ) server gets stop without any…
2
votes
0 answers

Use TLS client authentication with casablanca / cpprest in Linux

I wanted to switch over to cpprest for REST requirements, however, in my scenario, TLS client authentication needs to be supported. I went through the capabilities of the library, but I am not sure whether there is built in support for client…
user1173240
  • 1,455
  • 2
  • 23
  • 50
2
votes
0 answers

REST API + Webserver on embedded SoC running Linux

I'm developing an embedded platform and need to provide mechanisms to control and maintain the platform (file upload/download/delete and triggering various actions). I need to be able to use those functions from a program running on a host machine…
JPh
  • 536
  • 3
  • 20
2
votes
1 answer

Error on compiling 'set_ssl_context_callback': on Windows

I want to add some TLS specifications to my context , hence I am using the set_ssl_context_callback. But I get the error "set_ssl_context_callback is not a member of web::http::client::http_client_config" since it is surrounded by : #if…
ritu
  • 75
  • 1
  • 10
2
votes
2 answers

cpprestsdk using vcpkg, cmake - can't find include files

I am porting a Windows project to CentOS Linux that uses cpprestsdk. I use vcpkg on Windows and I thought I would use vcpkg (and cmake) to bring in and build the packages and 'expose' the libs and header files to my project. The sequence fails in…
pathrider
  • 844
  • 2
  • 12
  • 27
2
votes
2 answers

WinHttpSetOption() failed set TLSv1.2 with error code ERROR_INTERNET_INCORRECT_HANDLE_TYPE

I am trying to set TLSv1.1 or v1.2 from C++ (Win) code using cpprest API calls as mentioned. But WinHttpSetOption() is failing with error ERROR_INTERNET_INCORRECT_HANDLE_TYPE (12018). OS:Windows(7/8) Tried to set TLSv1.1 and TLS1.2 from registry…
2
votes
0 answers

Keyname not found in json

I'm trying to create my own Telegram bot as a project and don't want to use any of the libraries already out there that already do all the hard work for me as I want to do this for myself as on going self learning. I'm using CPPRESTSDK and trying to…
Hawke
  • 21
  • 1
2
votes
1 answer

Dealing with kanji characters in C++

I have a windows deskop application (named: Timestamp) written in C++ that use .NET called CLR. I also have DLL project (named: Amscpprest) written in native c++ and uses CPPREST SDK to get json data from server and pass the data to my Timestamp…
noyruto88
  • 767
  • 2
  • 18
  • 40
2
votes
1 answer

CPP-REST-SDK in Centos 7

I have a CentOS 7 (EPEL-Repo is registered) but I do not find the package for CPP-REST (libcpprest-dev in Debian) in the repos. Do I need to install it from vanilla or is there a package in CentOS? Thanks!
chris01
  • 10,921
  • 9
  • 54
  • 93
2
votes
1 answer

HTTP Exception :: Failed to connect to any resolved endpoint - cpprestsdk

I'm trying to use Microsoft's cpprestsdk, but I'm getting this error : HTTP Exception :: Failed to connect to any resolved endpoint Code :: 101 Here is my code : #include #include using namespace…
Nikhil Wagh
  • 1,376
  • 1
  • 24
  • 44
2
votes
3 answers

How to parse json data from cpprestsdk

return client.request(methods::GET).then([](http_response response) -> pplx::task { if (response.status_code() == status_codes::OK) { std::cout << "status ok"; …
Prince
  • 277
  • 2
  • 16
1 2
3
13 14