【发布时间】:2014-09-21 00:31:07
【问题描述】:
C++ 中是否与 Java 中的以下代码等价?
String url = "http://166.111.1.2/sensor?index=" + index_value;
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet( url );
HttpResponse response = client.execute( request );
我想在 Linux 上的 C++ 代码中实现 http 请求,但我找不到方法。我可以在 Windows 平台上使用 HttpClient 类。
【问题讨论】:
标签: c++ linux httprequest httpclient http-get