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
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
  • 2
  • 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
  • 100
  • 2
  • 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
  • 100
  • 2
  • 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
  • 832
  • 10
  • 37
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,445
  • 8
  • 41
  • 84
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
  • 441
  • 5
  • 24
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
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
  • 155,636
  • 47
  • 315
  • 299
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
  • 5,334
  • 4
  • 36
  • 72
0
votes
1 answer

Casablanca - REST C++ SDK, used in Embarcadero RAD Studio XE5

I need to do a http get in RAD Studio XE5 C++. The tutorials on the RAD Studio site discuss a RESTCLient that is not included with the version I have. I found the Casablanca project, which is specifically for Visual Studio, and I made a small…
0
votes
1 answer

Using Json and forms on Visual Studio

When I create a form on Visual Studio, the common language RunTime Support changes to /clr, but when I add the libraries of json, I get the following error: is not supported when compiling with /clr or /clr:pure And if I change from /clr for no…
0
votes
0 answers

Parallel execution of http_client requests in PPL Casablanca?

Background: I have a simple C++11 application that uses wxWidgets wxListView to display customer with their street address. The goal is to get the GPS coordinates from the address (geocoding) via web service that implements the service. I am able to…
pepr
  • 20,112
  • 15
  • 76
  • 139
1 2 3
12
13