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.

193 questions
0
votes
1 answer

C++REST SDK, parse JSON that contains (0xEF 0xBF 0xBF) character

I have a REST API that returns a string with files metadata. Among those files I have one that has "" (0xEF0xBF0xBF, link) character in name. When I try to parse such a response I get exception that says: e = {_message="* Line 1, Column 13 Syntax…
0
votes
1 answer

C++ Rest SDK Android Visual Studio 2015

I'am developing an Android static library with Visual Studio 2015. I'am using C++ Rest SDK (https://www.nuget.org/packages/cpprestsdk.android/). It works with Visual Studio 2015 RC but not with Visual Studio 2015. The reason is that Visual Studio…
Rino Seminara
  • 145
  • 1
  • 7
0
votes
1 answer

How to retrieve response header via casablanca?

wchar_t token[50]; http_client client(L"https://example.com/dir/"); http_request request; std::stringstream ReqBody; std::string ReqBodyS; ReqBody << "login=" << TB1T << "&pass=" << TB2T; ReqBodyS = ReqBody.str(); …
own2pwn
  • 311
  • 1
  • 7
0
votes
2 answers

C++ Casablanca POST request

I'm working on a custom Minecraft launcher and having some issues. I need to send a POST request with some JSON in it to "https://authserver.mojang.com/" and then retrieve some JSON that is returned. However, I am having issues sending the request.…
SeargentGen
  • 90
  • 1
  • 12
0
votes
2 answers

Casablanca: Assigning a Variable to a JSON Table Value

This is probably a simple question, but I have no idea as to the answer. I've tried googling it, but I don't know what to google. I need to assign a variable to a JSON table value (username string to username table value). I saw an example on MSDN…
SeargentGen
  • 90
  • 1
  • 12
0
votes
1 answer

Setting up multiple listeners with c++ casablanca

I need to set up an application that listens on a number of Urls but do not know when I start how many - this will eventually be read from a database but for the moment they are hard coded in a demo. // MultipleListenerTest.cpp : Defines the entry…
Paul S Chapman
  • 686
  • 7
  • 32
0
votes
2 answers

http server with casablanca crashes if I access the page

I have created a simple application with http_listener from casablanca (or cpprest) library: #include #include using namespace web::http::experimental::listener; using namespace web::http; using namespace…
sop
  • 3,025
  • 6
  • 34
  • 79
0
votes
1 answer

pplx::task with daemon not executed

I have a problem with pplx::task from cpprest (casablanca). After forking my process to create a daemon, the tasks are not executed and wait forever. auto task = pplx::create_task([] { std::cout << "Hi I'm a task " << std::endl; }); task.wait(); //…
Manticore
  • 366
  • 2
  • 21
0
votes
1 answer

Using \MDd and \MTd in the same visual studio solution?

I have a large preexisting code base depending on many external libraries which all uses \MTd as the runtime setting. This code base is stable and well tested in this configuration.I would prefer to keep it as is. I am attempting to integrate a new…
Robyn Fry
  • 83
  • 7
0
votes
1 answer

Using casablanca on windows server

Does the casablanca c++ Rest API support windows server as a platform? http://casablanca.codeplex.com/documentation I do not see it on the documentation. Has anyone tried this?
bazzinga
  • 219
  • 1
  • 8
0
votes
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
  • 2,863
  • 1
  • 22
  • 39
0
votes
1 answer

Building the cpprest (Casablanca) on windows 8.1 using VS2013 express

I'm trying to build the sdk but to no avail. My goal is to build a static version of the library, following the instructions here: How to statically link the CPP REST SDK, but I haven't even got to the static part, the build fails on the project as…
Nitzan Tomer
  • 120,901
  • 33
  • 273
  • 264
0
votes
1 answer

Chunk download with OneDrive Rest API

this is the first time I write on StackOverflow. My question is the following. I am trying to write a OneDrive C++ API based on the cpprest sdk CasaBlanca project: https://casablanca.codeplex.com/ In particular, I am currently implementing read…
0
votes
1 answer

Add Casablanca REST to Qt-Creator

I'm trying to add Casablanca to a C++/Qt-Creator project on Linux in order to consume some Rest-Services. But the compiler always says "'cpprest/http_client.h' file not found". Casablanca built without problems and the tests also run fine. I tried…
user4007301
  • 67
  • 2
  • 9
0
votes
1 answer

Accessing automatic variables from cpprest lambda expressions

Suppose I have: void f() { SomeClass someObject; pplx::create_task([&]()-> SomeClass { return someObject; }); } void g() { //Allocate automatic objects } int main() { f(); g(); } Is this guaranteed to work? my logic says no…
Shmoopy
  • 4,798
  • 3
  • 28
  • 67
1 2 3
12
13