Questions tagged [casablanca]

Casablanca is a Microsoft incubation effort to support cloud-based client-server communication in native code using a modern asynchronous C++ API design.

Casablanca is a Microsoft incubation effort to support cloud-based client-server communication in native code using a modern asynchronous C++ API design. It is a project that starts exploring how to best support C++ developers who want to take advantage of the radical shift in software architecture that cloud computing represents.

190 questions
1
vote
1 answer

CPPREST redirect location for response code 302

I am using CPPREST http_client to get a RSS feed from : http://www.20min.ch/rss/rss.tmpl?type=channel&get=68 but I am receiving redirect response code : 302 When i check the body of the response it is : Received response status code:302 response…
Hummingbird
  • 647
  • 8
  • 27
1
vote
0 answers

c++ rest cascblanca: make test failes on debian/ubuntu

I have problems getting the http-client to work. I have installed the C++ REST SDK from this guide. My OS is Debian GNU/Linux 8.3 (jessie). I have tested on Ubuntu 14.04.3 LTS, too, The problem occurs after building the libraries and running the…
kylecorver
  • 449
  • 1
  • 4
  • 12
1
vote
0 answers

avoiding conflicts in macro while using thirdparty c++ libraries

I am trying to use Casablanca, http server. to do so, I need to include headers files from Casablanca, which contains few macro and typedef that cause issues in my project. so my file look like this. simplehttpserver.h #include…
Abhay
  • 564
  • 6
  • 14
1
vote
1 answer

C++ Casablanca Restservice send PDF Files to Wordpress Clients

iam developing a rest service in c++ for a wordpress client in a project for a further education. The service is written in c++ using casablanca as framework for and service and client communicate over JSON. Now I have to send PDF Files to each…
Cazzador
  • 33
  • 2
  • 9
1
vote
0 answers

Getting errors while building the C++ REST sdk on eclipse, ubuntu

I tried to use cpp REST sdk using ubuntu on eclipse. I added the required header files to usr/local/includes. When I try to build the following code I get some errors. #include #include #include…
1
vote
0 answers

Casablanca C++ rest throws error "generic:1" on MAC

I am using cpprest 2.6.0 (also tried with 2.5.0) on OSX 10.10 and 10.11. While doing a Post I randomly get error "Error resolving address" generic:1". This happens once in 1000 calls. Seems to be coming from start_request in…
Vink
  • 1,019
  • 2
  • 9
  • 18
1
vote
0 answers

cpprest server, need a way to change the CHUNK_SIZE value at runtime

Our application normally transfers data (using HTTP GET) of several hundred megabytes, the default 64 Kb chunk size seems too small for optimal download rate. Changing the value to 5 Mb can reduce download time of 2 Gb data from 2minutes to 28…
xiaofeng.li
  • 8,237
  • 2
  • 23
  • 30
1
vote
1 answer

Failing to include C++ REST casablanca

I need your help as I've followed the exact instructions in this link (https://casablanca.codeplex.com/wikipage?title=Http%20Client%20Tutorial ). I've downloaded a new version of visual studio 2012 and installed the Nuget package for my Solution yet…
Hesham Amer
  • 122
  • 1
  • 13
1
vote
1 answer

How to erase elements from a cpprest json array?

How do I erase elements from a cpprest json array? Have I got to create a new copy of the array that only has the elements I want? Version 2.5.0
Scott Langham
  • 58,735
  • 39
  • 131
  • 204
1
vote
1 answer

CouchDB UTF-8 character error

I am trying to write a fully utf-8 compliant application with CouchDB as the back-end. I use c++ with the casablanca rest sdk to send my requests to Couch version 1.6.1. To test that the application can handle various unicode characters I have a…
Litterate
  • 135
  • 1
  • 6
1
vote
1 answer

Cannot compile Visual Studio 2013 C++ project with enabled BullseyeCoverage and Casablanca REST SDK

I have Visual Studio 2013 C++ project which leverages Casablanca REST SDK features. Project compiles normally. I have enabled BullseyeCoverage Compile C++ 8.9.50 Windows License XXXX and error appeared in the project: 1> …
paramosh
  • 2,258
  • 1
  • 15
  • 23
1
vote
1 answer

Undefined reference to web::json::value::object even if json.h included

I have a code that looks like this: void handle_get(http_request request) { TRACE(L"\nhandle GET\n"); std::vector< std::pair< utility::string_t, json::value > > answer; for(auto const & p : dictionary) { …
sop
  • 3,445
  • 8
  • 41
  • 84
1
vote
2 answers

C++ in the cloud. Casablanca REST Service on Microsoft Azure

Hello fellow Azure users. I have created quite an extensive C++ REST service using the CasaBlanca REST SDK. When I began working on this project I as lead to believe that I could run it in the Cloud (Azure) . Please explain how best I can get this…
Seth
  • 180
  • 8
1
vote
1 answer

How do you retrieve the authorization header in Casablanca REST API

I have the following function to check the authorization header. bool is_authorized(http_request request) { bool isAuthorized = false; int bitmask; int maskResult; ApplicationAuthorization returned_auth; ApplicationAuthorizations…
Paul S Chapman
  • 832
  • 10
  • 37
1
vote
2 answers

Casablanca Linker Errors on Android

I built casablanca for Android per the instructions here: How to build and setup for Android on Linux (2.3+). I moved the compiled libraries to my Android project and linked the module that depends on casablanca per the instructions here: How to use…
Luis
  • 3,451
  • 1
  • 27
  • 41