curl - Bug
来源:互联网 发布:王力宏 唱功 知乎 编辑:程序博客网 时间:2024/06/05 12:26
[Windows 7 + Cygwin + Curl]
============================================
OS Name: Microsoft Windows 7 Ultimate
OS Version: 6.1.7601 Service Pack 1 Build 7601
Cygwin Bash: 4.1.10(4)-release
Curl: curl 7.33.0
============================================
www.example.com ------> 127.0.0.1
$ curl --version
curl 7.33.0 (i686-pc-cygwin) libcurl/7.33.0 OpenSSL/1.0.1e zlib/1.2.8 libidn/1.26 libssh2/1.4.2
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: Debug GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP Metalink
$ curl --verbose http://www.example.com/file[0-2].txt
[1/4]: http://www.example.com/file0http://w --> <stdout>
--_curl_--http://www.example.com/file0http://w
* STATE: INIT => CONNECT handle 0x2001f118; line 998 (connection #-5000)
* About to connect() to www.example.com port 80 (#0)
* Trying 127.0.0.1...
* Adding handle: conn: 0x20069b00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* 0x2001f118 is at send pipe head!
* - Conn 0 (0x20069b00) send_pipe: 1, recv_pipe: 0
* STATE: CONNECT => WAITCONNECT handle 0x2001f118; line 1045 (connection #0)
* Connected to www.example.com (127.0.0.1) port 80 (#0)
* STATE: WAITCONNECT => DO handle 0x2001f118; line 1164 (connection #0)
> GET /file0http://w HTTP/1.1
> User-Agent: curl/7.33.0
> Host: www.example.com
> Accept: */*
>
* STATE: DO => DO_DONE handle 0x2001f118; line 1250 (connection #0)
* STATE: DO_DONE => WAITPERFORM handle 0x2001f118; line 1371 (connection #0)
* STATE: WAITPERFORM => PERFORM handle 0x2001f118; line 1382 (connection #0)
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 403 Forbidden
< Date: Wed, 11 Dec 2013 01:37:00 GMT
* Server Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 is not blacklisted
< Server: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
< Vary: accept-language,accept-charset
< Accept-Ranges: bytes
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=utf-8
< Content-Language: en
<
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Access forbidden!</title>
<link rev="made" href="mailto:postmaster@localhost" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
body { color: #000000; background-color: #FFFFFF; }
a:link { color: #0000CC; }
p, address {margin-left: 3em;}
span {font-size: smaller;}
/*]]>*/--></style>
</head>
<body>
<h1>Access forbidden!</h1>
<p>
You don't have permission to access the requested object.
It is either read-protected or not readable by the server.
</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:postmaster@localhost">webmaster</a>.
</p>
<h2>Error 403</h2>
<address>
<a href="/">www.example.com</a><br />
<span>Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7</span>
</address>
</body>
</html>
* STATE: PERFORM => DONE handle 0x2001f118; line 1552 (connection #0)
* Connection #0 to host www.example.com left intact
Segmentation fault (core dumped)
====================================
$ curl.exe --version [It works fine]
curl 7.32.0 (i686-pc-cygwin) libcurl/7.33.0 OpenSSL/1.0.1e zlib/1.2.8 libidn/1.26 libssh2/1.4.2
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3srtsp scp sftp smtp smtps telnet tftp
Features: Debug GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP Metalink
- curl - Bug
- Curl的毫秒超时的一个”Bug”
- php ftp和curl遇到的bug
- php-curl封装[避免上传文件二义性Bug]
- curl
- curl
- CURL
- curl
- curl
- Curl
- cURL
- CURL
- curl
- curl
- curl
- curl
- curl
- curl
- 你扔过来的沟通最简单
- java的Calendar(日历)类
- bootstrap简单介绍
- Bash下Ctrl-C、Ctrl-D和Ctrl-Z的区别
- NSOrderedSame NSOrderedAscending NSOrderedDescending应用
- curl - Bug
- Linux & Windows TLS实现 (http://blog.csdn.net/manjian/article/details/7053207)
- Online App
- Java 位运算符
- IAR各个版本下载地址
- JS验证.net 文本输入值
- 【小记备忘】之C/C++ 杂记,catch,调用构造函数,内存分配,隐式转换【2013.12.11】
- OSMeteorTranslationAPI(百度,有道)对比
- centos 6.3 ftp安装与配置