目前我的(Request-Line):POST / HTTP/1.1
我想要实现(Request-Line):POST /eeefff/ HTTP/1.1HTTP 这个怎么实现
我用HttpURLConnection进行向服务器发送信息
HttpURLConnection connection = (HttpURLConnection) current_url.openConnection();
connection.setRequestProperty();这个估计能设置,但是我不知道怎么做
我想要实现(Request-Line):POST /eeefff/ HTTP/1.1HTTP 这个怎么实现
我用HttpURLConnection进行向服务器发送信息
HttpURLConnection connection = (HttpURLConnection) current_url.openConnection();
connection.setRequestProperty();这个估计能设置,但是我不知道怎么做
解决方案 »
- 急。有关Android图库问题。
- android sdk安装问题
- 请教:GPS数据赋值问题
- NDK生成的so库,怎么使接口函数和具体的包/类名无关
- android 如何从短信监听服务中打开指定的应用
- 【请教】Launcher mainmenu的view,如何为view创建RGB565的缓存?
- android流量监控,黑名单白名单,应用加密。等
- 求教Android蓝牙串口开发OutputStream发送数据失败的问题。
- 有办法实现这两种功能吗
- 添加glide库时在dependencies处出错
- android中java怎样给本地的javascript传参数
- Avd2.2上邮箱问题(自带Email)
头不用你写的
setRequestProperty("Request-Line","POST /eeefff/ HTTP/1.1");
这样不行,结果在原来的下面加了一行
(Request-Line):POST / HTTP/1.1
request-line POST /Enterprise/ HTTP/1.1
============
current_url 中什么内容?应该就是这个url吧
是这样的
current_url = new URL("http://45.77.211.52:80/");
这样之后效果是在原来的下面多了一个,并没有添加上
(Request-Line):POST / HTTP/1.1
request-line POST /eeefff/ HTTP/1.1
============
current_url 中什么内容?应该就是这个url吧
我的是这个
current_url = new URL("http://45.22.212.56:80/");C++中用
CHttpConnection* pServer = NULL;
pServer->OpenRequest(CHttpConnection::HTTP_VERB_POST,"eeefff");
效果就是下面的
(Request-Line):POST /eeefff/ HTTP/1.1
current_url = new URL("http://45.77.211.52:80/eeefff/");