linux上wget命令出现HTTP request sent, awaiting response... 400 Bad Request问题
2012-10-30 14:14
585 查看
linux上没有安装FTP工具,因此想用wget命令来下载本机上的文件.
我用IIS映射了一个网站地址,然后把文件放在这个网站目录上
注意:IIS地址网站绑定的IP地址不能填写127.0.0.1,而是要填192.168.xx.xx
不然的话会出现HTTP request sent, awaiting response... 400 Bad Request的错误
如图:
然后随便取个域名,配置下hosts文件
www.abc.com 192.168.xx.xx
关闭防火墙
进入linux,修改etc/hosts文件,添加一行:
www.abc.com 192.168.xx.xx
输入wget http:// www.abc.com/webroot/aaaa.exe
这样就可以下载本机上的文件了
我用IIS映射了一个网站地址,然后把文件放在这个网站目录上
注意:IIS地址网站绑定的IP地址不能填写127.0.0.1,而是要填192.168.xx.xx
不然的话会出现HTTP request sent, awaiting response... 400 Bad Request的错误
如图:
然后随便取个域名,配置下hosts文件
www.abc.com 192.168.xx.xx
关闭防火墙
进入linux,修改etc/hosts文件,添加一行:
www.abc.com 192.168.xx.xx
输入wget http:// www.abc.com/webroot/aaaa.exe
这样就可以下载本机上的文件了
相关文章推荐
- spring mvc 数据绑定问题 提交表单提示HTTP status 400, The request sent by the client was syntactically incorrect
- 解决 spring mvc3.1下post json出现HTTP Status 400 The request sent by the client was syntactically incorrect
- scrapy 出现400 Bad Request 问题
- HttpWebRequest.GetResponse() raises exception when http status code 400 (bad request) is returned
- SpringMVC中出现" 400 Bad Request "错误(用@ResponseBody处理ajax传过来的json数据转成bean)的解决方法
- SpringMVC中出现" 400 Bad Request "错误(用@ResponseBody处理ajax传过来的json数据转成bean)的解决方法
- spring mvc 数据绑定问题 提交表单提示HTTP status 400, The request sent by the client was syntactically incorrect
- 网页出现HTTP 400 Bad Request,Size of a request header field exceeds server limit
- 错误:bad request 400(建立socket http get请求)-linux
- SpringMVC中出现" 400 Bad Request "错误(用@ResponseBody处理ajax传过来的json数据转成bean)的解决方法
- 新手使用 Nexus 出现的问题 (400-bad request missing request entity)
- Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法
- Android studio出现 Error:Unable to tunnel through proxy. Proxyreturns "HTTP/1.1 400 Bad Request"
- Mac OS X 更新到10.11后cocoapods安装出现的问题(- bad response Not Found 404 (http://ruby.taobao.org/latest_spe)
- SpringMVC中出现" 400 Bad Request "错误(用@ResponseBody处理ajax传过来的json数据转成bean)的解决方法
- SpringMVC中出现" 400 Bad Request "错误(用@ResponseBody处理ajax传过来的json数据转成bean)的解决方法
- Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法
- Nginx+tomcat配置https后出现400 Bad Request问题
- Mac OS X 跟新到10.11后cocoapods安装出现的问题(- bad response Not Found 404 (http://ruby.taobao.org/latest_spe)
- Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的解决办法