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
2
votes
4 answers

C++ REST SDK Casablanca Client.request

I want to write a little c++ program that sends a request to a server an get some data. I found the C++ Rest-SDK and decided to use it. I searched on different websites for code-examples but many of them doesn't work an shows syntax errors. What i…
user3580493
  • 21
  • 1
  • 1
  • 2
2
votes
4 answers

Post a text request in Casablanca (C++ REST SDK)

I am writing a client side code in Visual C++ 2012 using C++ Rest SDK (codename "Casablanca"). I have a client created and wish to POST a text string to the server. However, when I send the following code, it is compiling but not sending sending the…
Vaibhav
  • 158
  • 3
  • 8
1
vote
0 answers

Using c++ rest SDK to make a GET request including headers / body

How do I make an http GET request with headers and possibly a body using c++ rest SDK? I'm able to make a GET request without headers / body as follows: web::http::client::http_client client(U("https://host.com")); pplx::task response…
James
  • 11
  • 2
1
vote
1 answer

How to request with request header to https URL using C++ REST SDK?

I'm trying to make source that requests to specific https URL with request header using c++ rest sdk. ex)https://111.0.0.1:1111/vl/api/auth Then, I want to allocate response value to char* value and print. It is first time to use rest sdk. So I…
최주오
  • 11
  • 2
1
vote
1 answer

cpprestsdk SSL post not working on Windows7 but works on windows 10

I have a C++ Windows application, developed using Visual studio 2017 on windows 10 system. This application uses cpprestsdk to post request to REST Server. My application works perfectly fine on windows 10 machine with properly posting request over…
Ekayaa
  • 169
  • 16
1
vote
0 answers

exception thrown on cancelation when using ctrl+c

pplx::task RestInterface::Getsxxxx() { utility::stringstream_t ss; pplx::cancellation_token_source cts; pplx::cancellation_token ct = cts.get_token(); ss<<"http://"<
sabby
  • 21
  • 5
1
vote
4 answers

How to keep server running (cpprestsdk - casablanca)

I am developing a REST api using Microsoft's cpprestsdk (aka casablanca) and I am having trouble keeping the server running when executing my code. See my main.cpp here: int main() { cout << "Starting Server" << endl; TransactionController…
Biggytiny
  • 519
  • 10
  • 29
1
vote
1 answer

Displaying specific data from return data of api, C++ REST SDK a.k.a Casablanka

I'm new to c++ and visual c++ and working on accessing api using cpprestsdk aka casablanca. I managed to follow the tutorial from its github and able to display the return data in terminal. But I don't know how to display specific data. The return…
noyruto88
  • 767
  • 2
  • 18
  • 40
1
vote
1 answer

Convert compiler command line to CMakeLists.txt for Casablanca Rest SDK

I'm having a hard time converting a compiler command line call to a CMakeLists.txt, the goal is to use the Microsoft Rest SDK casablanca. Because I'm new to this, I have no idea what's wrong in my CMakeLists.txt I successfully build using this (on…
Hangarter
  • 582
  • 4
  • 12
1
vote
1 answer

HTTP Authentication in Casablanca

I have a problem accessing Fantasy Premier League data, URL https://fantasy.premierleague.com/drf/my-team/1447063/ The URL is specific to me, so requires authentication to access it. I have used the code in the answer to Set Basic HTTP…
Pboris
  • 11
  • 6
1
vote
1 answer

POST request to C++ Rest (casablanca) server

I am new to full stack development and have few queries, I am working on a project (basically for self learning) in which I want to create a front end using node/express js and at backend want to use a mysql database. Connection between my website…
amithreat
  • 51
  • 5
1
vote
0 answers

Sending a audio buffer using C++ Rest SDK

I recently started to use C++ Rest SDK and I'm trying to send an audio buffer to Watson Speech to Text service and the docs didn't make clear to me how to use or upload a buffer using this lib, I started using a Microsfot sample to upload…
jaojpaulo
  • 21
  • 4
1
vote
1 answer

Must NuGet configure project's include paths?

I have downloaded Dropbox CPP REST sample from official MS site. In order to use cpprestsdk I asked NuGet to download package. It has downloaded packages for various tool sets: When I build project I got error: Severity Code Description…
vico
  • 17,051
  • 45
  • 159
  • 315
1
vote
1 answer

No CPP REST SDK in NuGet

I have never used nuget before in Visual C++ project. But now I got help on How to use the C Rest SDK NuGet package there. I have started c++ console project, clicked on "Manage NuGetPackages for solution...": And got list of packages. Looks like…
vico
  • 17,051
  • 45
  • 159
  • 315
1
vote
0 answers

How can I connect to Watson Speech to Text server using C++ Rest SDK Websocket

I'm trying to connect to Watson Speech to Text server uisng websocket but when I try to make the connection don't connect. I get the connection token to autenticate my websocket connection, so concatenate with the URL and try to connect but as I…
jaojpaulo
  • 21
  • 4