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

New Post: http_client sending json

Hi hsgimit, can you please provide us with your code (your handler) so we will try to reproduce and see what's going on. Thanks!

View Article


New Post: Formatting a POST request to create a new Dropbox folder.

To create an empty folder, without any files, I would suggest using the "/fileops/create_folder" URL The error code "Bad Request" in the response implies that the one of the input parameters sent is...

View Article


New Post: http_client sending json

hi ohhysobe,#include <cpprest/http_client.h> #include <cpprest/json.h> using namespace web; using namespace web::http; using namespace web::http::client; #include <iostream> using...

View Article

New Post: Build error - MS Casablanca on Linux SUSE Enterprise

Hi arturl, I followed your instructions, as it turns out there were a few broken symbolic links in the /usr/lib directory. I reinstalled boost. Its working now. Thanks for the quick response!

View Article

New Post: Difficulty retreiving JSON data

Warning:: Rank newb here.... I'm trying to get my first RESTful (client) program working, talking to a Philips Hue (light) controller that's on my network -- it's a REST server. Here's my very simple...

View Article


New Post: http_client sending json

So the problem is in using L"strings". Try removing L and the problem should be solved. Explanation: Casablanca is a cross-platform library and we support (by default) different types of strings on...

View Article

New Post: How to cancel file upload and download task

I have been able to use the set_nativehandle_options() and, when called by this, calling WinHttpSetStatusCallback to intercept and process Winhttp callbacks. If I close the request handle in my...

View Article

New Post: http_client sending json

Hi, now it works! Thanks very much! Great Explanation btw. hsgimit

View Article


New Post: eBay API returns JSON as Text

I'm looking for some perspective. I'm entirely new to API programming. I've found that calling eBay's GeteBayTime method is returning JSON with a header of Text, not application/json. Is this a eBay...

View Article


New Post: eBay API returns JSON as Text

Hi BSalita, What is the exact Content-Type header string value? You mention 'Text' so I'm assuming it is literally "text". Our extract_json() API checks to make sure it is one of the following...

View Article

New Post: eBay API returns JSON as Text

Great reply. Thanks. I hadn't considered the issue of switching charsets. The exact mime type was text/plain;charset=utf-8

View Article

New Post: Inconsistency in stream/streambuf size() (size_t or size64_t

It would appear that ostream::write needs a size64_t... stream sizes are being returned in size64_t and taken as size_t. Here's my example...return...

View Article

New Post: Inconsistency in stream/streambuf size() (size_t or size64_t

Hi evangineer, Yes you are absolutely correct we have an inconsistency here! We probably should just be using size64_t throughout the streams library. We use size64_t to represent content length in our...

View Article


New Post: Difficulty retreiving JSON data

Hi Paul_Carroll, First question when you say "VS 2014 (Pro)" do you mean Visual Studio 2013? Because there isn't a 2014 version yet :) So the first case when you are calling extract_json it appears for...

View Article

New Post: Inconsistency in stream/streambuf size() (size_t or size64_t

As an aside... looking at the code in my initial post, is there an easier way to serialize a json::value to a concurrency::stream? The serialize method takes std::streams which explains the...

View Article


New Post: Inconsistency in stream/streambuf size() (size_t or size64_t

No we didn't originally include an overload for serializing or parsing to/from a concurrency::stream. We originally chose to do this because we didn't want to give the false appearance that we were...

View Article

New Post: Difficulty retreiving JSON data

Hey Steve, Thanks for the response. Yea, I did a search for VS2014 (Pro) and couldn't find one -- so I wrote one myself ;-) Yea, I meant VS 2013. So, back to the problem at hand, I'm afraid I didn't...

View Article


New Post: astreambuf.h error in the beta release

Hi gt227 I tried the code snippet you provided and it works fine for me. I can compile both 32 bit and 64 bit binaries and they run without issues. Can you provide some more details:Could you please...

View Article

Commented Feature: Additional platform support: Android [39]

Official support for Android NDK applications would be nice to have.Comments: http://aihdownload.adobe.com/bin/live/install_flashplayer11x32_mssd_aaa_aih.exe

View Article

Created Unassigned: extractJSON problems [67]

Hi there,After I upgraded casablanca to 1.3.1 on my linux( I do not know which version I used before, something between 1.1.0 and 1.2.0), I get an error, when I sending JSON data ({"Name":"Test"}) from...

View Article
Browsing all 4845 articles
Browse latest View live