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

New Post: Making connection to Web server

$
0
0
Hi,

Thanks again for your outstanding support.

I have spent a lot of time to figure out how I can make a connection to our web server using username and password. I only want to open a connection and then fetch some stuff from a database (in Mongodb) using Casablanca and then close the connection when I am done.
(I can check whether the connection is open or not before any job). In your tutorial you have only one line for making a connection:
http_client client(L"http://www.fourthcoffee.com");
and then,
http_request request(methods::GET);
But I don’t want to make any request. I just want to open an authorized connection using username and password and then in other function make the request, fetch the data in Json format and parse it.
How can I do that? Could you please give me an example to put me on the right path?

Best regards
RezRaz

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>