Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Browsing all 4845 articles
Browse latest View live
↧

New Post: CPP Rest SDK, Build errors while building my project

Hi Mohamed, Can you please give step by step instructions starting from the beginning so I can try on a machine? Thanks, Steve

View Article


New Post: CPP Rest SDK, Build errors while building my project

Hi Steve, Sure, here are the steps:Downloaded the installation file C++ REST SDK for Visual Studio 2010 from the link you providedAdded the include directory "C:\Program Files (x86)\Microsoft Cpp REST...

View Article


New Post: CPP Rest SDK, Build errors while building my project

Hi Mohamed, From your last error message "Error 143 error C1189: #error : "Error: http server APIs are not supported in XP" ", you are trying to target XP or building on XP. Possibly you use the wrong...

View Article

New Post: CPP Rest SDK, Build errors while building my project

Hi, Now I installed visual studio 2012, and I'm still getting the same errors, here is a screen shot of what i get. I just installed it using NuGet on Visual Studio 2012, this is weird !!! Thanks, Mohamed

View Article

New Post: CPP Rest SDK, Build errors while building my project

zhelu wrote: Hi Mohamed, From your last error message "Error 143 error C1189: #error : "Error: http server APIs are not supported in XP" ", you are trying to target XP or building on XP. Possibly you...

View Article


New Post: Http Client Tutorial not working:...

Hi, I'm new to the C++ REST SDK and I've been following the Http Client Tutorial (https://casablanca.codeplex.com/wikipage?title=Http%20Client%20Tutorial). I've installed Casablanca 2.0.1, and I've...

View Article

New Post: Http Client Tutorial not working:...

Example usage. This compiles ok. I'm not sure if it's logically correct. web::http::http_response response(web::http::status_codes::OK);...

View Article

New Post: access image file from the server side (http_listener) .

i am trying to access the data of an image file uploaded by a client . here is the code .auto data = req.extract_vector().get(); FILE* out = NULL; if(!(out = fopen("a.jpg","wb+"))) return false;...

View Article


New Post: How to extract some info from the http_client response via XmlLite?

Following the discussion:541059, I was able to get the XML body of the response into wstring. Full example looks like this.#include <cpprest/filestream.h> using namespace utility; // Common...

View Article


Edited Unassigned: How to obtain new access token or refresh token [171]

Need to handle token expiration gracefully, and expose a way to get a refreshed token

View Article

Commented Unassigned: How to obtain new access token or refresh token [171]

Need to handle token expiration gracefully, and expose a way to get a refreshed tokenComments: Assigned to Zheng to verify

View Article

New Post: access image file from the server side (http_listener) .

Trying to help but I only have example of opposite direction. The concepts are similar. This is slightly Windows C++ specific. FILE *f; errno_t e = fopen_s(&f, fn.c_str(), "rb"); // fn is filename...

View Article

New Post: Http Client Tutorial not working:...

Ok - I've managed to run the tutorial now. The tutorial works. Part of the reason why mine didn't work was because I forgot to install Boost and also in Visual Studio 2013, I had selected New Project...

View Article


Updated Wiki: How to setup, build, and run tests on Windows

How to setup, build, and run tests on WindowsSetup Git 1. Install git for Windows. 2. If you like PowerShell, we recommend installing Posh-Git (here is how). 3. If you prefer the plain cmd.exe command...

View Article

New Post: Using http_request for a POST request that uploads a file

The client can only send data to the server. An http_client cannot tell the server where to store the data. It is upto the server on how it wants to interpret and store the data. If you have control of...

View Article


New Post: How to extract some info from the http_client response via XmlLite?

Hi pepr, Yes you are correct the C++ Rest SDK doesn't contain an XML library. You can get the response body as a string, like is done in your example code, from there you can then use with any existing...

View Article

New Post: does casablanca support compression on http response?

Hi subuliu We do not have any plans to add support for compression/decompression. On Windows Desktop, we build our http_client on top of WinHTTP. WinHTTP does not provide decompression support. Are you...

View Article


New Post: Http Client Tutorial not working:...

Hi awong, We've fixed up the issue with empty projects now in our development branch. You shouldn't have any problems any more. We were checking a wrong macro before. Thanks, Steve

View Article

Updated Wiki: Setup and Build on Linux

How to setup, build, and run tests on Linux 1. Install Ubuntu 12.04 or later.2. Add the Ubuntu PPA for GCC 4.8: sudo apt-get install python-software-properties sudo add-apt-repository...

View Article

Updated Wiki: Setup and Build on Linux

How to setup, build, and run tests on Linux 1. Install Ubuntu 12.04 or later.2. Add the Ubuntu PPA for GCC 4.8: sudo apt-get install python-software-properties sudo add-apt-repository...

View Article
Browsing all 4845 articles
Browse latest View live