-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Please answer these questions before submitting your issue. Thanks!
- What did you do? If possible, provide a simple script for reproducing the error.
curl postman 和 ajax 都是可以的,但是swoole 却不行
很简单的代码:
$domain = 'search.gd.gov.cn';
$cli = new co\Http\Client($domain, 80);
go(function() use ($cli) {
$cli->get('/jsonp/site/762001?callback=wwefewf');
var_dump($cli->getBody());
});
$cli->close();
返回:
[2019-12-25 14:55:21 @38878.0] WARNING http_parse_set_cookies: cookie key format is wrong
string(0) ""
-
What did you see instead?
-
What version of Swoole are you using (show your
php --ri swoole
)?
swoole
Swoole => enabled
Author => Swoole Team team@swoole.com
Version => 4.4.13
Built => Dec 25 2019 14:17:28
coroutine => enabled
kqueue => enabled
rwlock => enabled
openssl => OpenSSL 1.0.2q 20 Nov 2018
http2 => enabled
pcre => enabled
zlib => 1.2.11
async_redis => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 262144 => 262144
- What is your machine environment used (including version of kernel & php & gcc) ?
macos