New Post: JSON valud conversion portability
Hello, I am doing an experiment with a portable library (Android and Windows Phone) with VS 2015 CTP calling a third party API which return a a JSON containing a string property that is actually an...
View ArticleNew Post: JSON valud conversion portability
I forgot to mention that my current mitigation is to use a preprocessor directive. I am curious if there is something better
View ArticleNew Post: JSON valud conversion portability
Hi MsdnDev, Yes in the C++ Rest SDK we use a string type dependent on the underlying platform type. What you are seeing is on Windows we are using UTF-16 stored in a std::wstring. On Android we use...
View ArticleNew Post: JSON valud conversion portability
Hi Steve, The conversion utility is a bit more elegant. Thank you for the suggestion. Pedro
View ArticleNew Post: C++ REST SDK throw error when use https
Hi, When I use IE to open this url: https://myip/rest/aaa/updatePassword/13770675082/123456, I can get the right result, the response is a jason struct. but when i run this simple program, it will...
View ArticleNew Post: Problem with https
jdiazdesico wrote: May be with some .bat script is possible. I don't experimented with it. But seems complicated due to hash finger print needed to add the ssl certificate to secure the port. I have...
View ArticleNew Post: C++ REST SDK throw error when use https
I have found the topic in here:http://casablanca.codeplex.com/discussions/444453 This is the problem I have encountered, If I want to ignore the exception, do I need to add this code yet?
View ArticleNew Post: C++ REST SDK throw error when use https
Hi ylongwu, Yes if any error occurs an exception will be thrown, not an assert, out of the task returned from http_client::request. You didn't mention any information about what the exception...
View ArticleNew Post: Exctract body and JSON from same response
Hi, I have a problem that I would like some help to figure out. I have a http_response that will include JSON that I will perform two different actions on. The first is to just take the JSON / body...
View ArticleNew Post: Exctract body and JSON from same response
Hi Pettor, There are two solutions that quickly come to mind. One we have the ability to turn on our JSON library to guarantee ordering of name value pairs in objects,...
View ArticleNew Post: nuget timeout...
On my first solution using nuget to install casablanca worked great back in August (getting 2.2.0). But now I need to add casablanca to a new solution all things being the same in my configuration (ie...
View ArticleNew Post: unit testing with BOOST
I am attempting to do some unit testing. I saw a thread about being able to use the client and server test files located in Release\tests\Functional\http\utilities. But there really is not much...
View ArticleNew Post: nuget timeout...
Hi robyn_fry, You could try downloading the NuGet package from the command line if you are having trouble through Visual Studio. Fundamentally I wouldn't expect it to make much difference. I took a...
View ArticleNew Post: nuget timeout...
Thanks for the quick response. I had already tried the command line as that trick had worked for me in the past for other packages. I was looking for a way to download without nuget but the nuget page...
View ArticleNew Post: Error reading characters of string.
Hello My goal is to get json data from API I get the following error 'Error reading characters of string.', But status comes Ok (200) so I think problem related with json parsing Please help. This is...
View ArticleNew Post: explicit specialization;...
Hello I use Cpp rest for VS 2010 and I get the following error explicit specialization; 'Concurrency::streams::_type_parser_integral_traits<utf16char>' has already been defined Problem is that I...
View ArticleNew Post: Getting the Right Syntax for uploading a file using the exe. of the...
Hi Steve, I am trying call an exe. program that uses Casablanca to upload XML data to a server. When I call it i get this System error pop up" The program cannot start because ccprest110d_2_3.dll is...
View ArticleNew Post: Linker Errors on Android
Hi wangqiang, You never replied back, but the pplxlinux.cpp source file has been added to the CMakeLists.txt file when targeting Android. This change has been made in the development branch. Steve
View ArticleUpdated Release: C++ Rest SDK 2.5.0
AndroidFixed issue in CMakeLists.txt where parenthesis were incorrectly used instead of brackets.Fixed issue in CMakeLists.txt where pplxlinux.cpp source file was missing.Added Android TestRunner...
View Article