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

New Post: User Input into HTTP

$
0
0
As I'm building an HTTP request, is there any way to prompt the user in the command window for the server/port/path etc.?

Something like:
string DummyURI
cout << "Enter protocol and server:  " << endl;
cin >> DummyURI

web::uri_builder uribuilder(DummyURI);
auto uri = uribuilder.to_uri();
http_client client(uri);
client.request(methods::GET).then([](http_response response)
{});
Can anyone think of a simple way to do that?

Viewing all articles
Browse latest Browse all 4845

Latest Images

Trending Articles



Latest Images

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