Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
↧

New Post: HTTP Server listening on Network

Hello, How do i create a http_listener that can be addressed over the network?http_listener listener(L"http://localhost:34568"); This works fine for me, i can access it on the same machine. But i can't...

View Article


New Post: Http_Listener with json. I can't access to the json data

You are pretty close. Now you just have to use the .then() method of the task as follows:void handle_post(http_request Recieved_request) { auto task =...

View Article


New Post: Saving http_request.body() to file

Hi, i'm interested in write similar code but i didn't fine enough doc about it. In particular i made a client POST where i send a file and from server side i need to extract not only the byte but also...

View Article

New Post: Http_Listener with json. I can't access to the json data

Hello Speins and thank you for your answer!

View Article

New Post: experimental::listener will become production ready soon???

very good question. I'm exactely wondering the same after I finished my Proof Of Concept... +1

View Article


New Post: why cloud-based ??

Hello, Cpprestsdk is cloud-based everywhere Is there a particular reason to be cloud-based? Thanks

View Article

New Post: problems with opening cpprestsdk120.sln

Hi, people. Sorry for probably stupid question, but don't you have problems with opening solution "cpprestsdk120.sln" with MS Visual Studio 2013? For me, MS Visual Studio 2013 Ultimate cannot open some...

View Article

New Post: Creating http_request with a stream and a complex body

Hi All, I'm trying to write a C++ client for posting messages and images into HipChat, using cpprestsdk. I succeeded posting a message but got stuck with uploading an image file. From HipChat REST API...

View Article


New Post: How to round JSON numbers to a specific precision?

Hello all, I'm having a pretty basic (and well-know) floating precision problem with the JSON part of cpprestsdk. I read in a number with a decimal point (e..g. 13.12) and want to generate a JSON...

View Article


New Post: Linux Sample App

Most of the info I have found is for visual c++ but I am trying to write a server on linux that receives REST requests and acts as a client to hit other REST services, parse the result and then send...

View Article

New Post: Linux Sample App

I just found the samples directory, I can figure it out from there.

View Article

New Post: Does C++ Rest SDK support integrated authentication

I am trying to connect to an api using windows authentication/integrated authentication. Would like to know if C++ Rest SDK supports integrated authentication.

View Article

New Post: Saving http_request.body() to file

auto fileBuffer = std::make_shared<Concurrency::streams::basic_ostream<uint8_t>>();try { auto stream = concurrency::streams::fstream::open_ostream( U("data.txt"), std::ios_base::out |...

View Article


New Post: HttpClient SSL A connection with the server could not be established

probably you need admin rights in order to connect the client

View Article

New Post: http_listener thread or request handling capacity

Hi, I stress tested http_listener in Linux (CentOS) with JMeter: For the listener callback function which is registered through "http_listener::support", all it does is to sleep "2000" milliseconds (2...

View Article


New Post: cpprest Casablanca doesn't close file stream

i don't know the reason but my server doesn't work anymore. The problem is because it doesn't close the output file stream "uploaded",so i can't manage the file because it exists but it's empty....

View Article

New Post: Linux Sample App

Hi i need to create c++ restful service on fedora Linux and deploy it on tomcat server. is rest sdk is suitable for me? i am using netbeans so c++ rest sdk works with netbeans? otherwiseshould i use vs...

View Article


New Post: Compilation error C2664: 'void...

I try to execute the following program.include <cpprest/http_listener.h>include <cpprest/json.h>include <iostream>include <map>include <set>include <string> using...

View Article

New Post: How to listen on an IPv6 address using cpprestsdk http_listener?

I passed an url string http://2001:420:589a:2009::101/ to the constructor of http_listener and then called http_listener.open().wait(), unfortunately I got an exception saying resolve: Service not...

View Article

New Post: How to listen on an IPv6 address using cpprestsdk http_listener?

To be more exact, I can successfully listen on an IPv4 address or an domain name which would be resolved into an IPv6 address, however listening on an IPv6 address is always failed.

View Article