【发布时间】:2011-09-24 16:06:38
【问题描述】:
我在 centos 5.5 中使用 curl 并像下面这样 curl 从 url 获取响应:
curl 7.21.2 (x86_64-unknown-linux-gnu) libcurl/7.21.2 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM SSL libz
http://www.51buy.com/portal.html,我可以得到响应但它不完整,例如你找不到'934',但'934'确实在那个html源代码上。
另一方面,在我的 Windows 上,我使用了 curl 版本,如下所示
curl 7.21.2 (i386-pc-win32) libcurl/7.21.2 OpenSSL/0.9.8o zlib/1.2.5 libidn/1.18 libssh2/1.2.7 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS IDN Largefile NTLM SSL SSPI libz
获取相同的url,就可以得到完整的响应。
谁能给我一些线索来帮助我解决问题? 提前谢谢你。
【问题讨论】: