Comments (7)
请描述一下你想要allow_redirects
实现什么功能
from swoole-src.
就最简单的 比如说get() download()支持302跟随
因为我现在需要下载文件,但是下载的地址是302过去的,如果download()的话就无法下载到目标文件
from swoole-src.
可能我描述的不是很清楚,是HTTP/WebSocket客户端
from swoole-src.
HTTP/WebSocket客户端不支持这么操作,看看能否通过HTTP/WebSocket客户端的getHeaders()
判断状态码是否302,是的话直接访问响应头的Location
指向的地址。
from swoole-src.
但是我302跳转可能是三个302或者两个302 那没办法的话我只能自己写逻辑了:(
from swoole-src.
你说的是 Coroutine HTTP Client 吧,现在都不用那个了,直接用 cURL 就有,社区库用 guzzle 就可以。
from swoole-src.
那我看看别的库什么的
from swoole-src.
Related Issues (20)
- 多线程模式server达到max_request后进程终止;kill -USR1无法重启子线程 HOT 2
- php8.1.x+swoole-5.1.x+alpine3.1.7+xdebug 3.3.2 ,启动 hyperf 项目报错 HOT 1
- Worker freezes after restart when using worker_max_concurrency HOT 2
- Can not change settings for other opened port HOT 3
- Incorrect stats behavior when restarting workers
- v6多线程下 Swoole\Http\Response::create无效 HOT 1
- Async programming does not work in the magic __get() method HOT 2
- V6 chown函数异常 HOT 9
- Request header encoding error with exactly 16 lenght HOT 3
- Server-reload() does not terminate Swoole Timers, gracefully HOT 6
- [FIXED] Undefined constant "SWOOLE_SOCK_TCP" (MAMP PRO) HOT 33
- 一个在Swoole中使用协程化处理Oracle事务行锁中出现的奇怪问题 HOT 4
- Swoole\Process\Pool HOT 2
- V6 chown、函数异常 HOT 1
- Links for &$var don't work HOT 1
- Swoole build for PHP-8.4 ZEND_EXIT has been removed HOT 2
- 在协程里面先进行TCP请求然后MySQL操作,会导致TCP请求耗时大幅增加 HOT 11
- curl请求swoole进程异常退出 HOT 2
- V6多线程压测性能不理想 HOT 4
- 开启 OPcache 恐使 SWOOLE_HOOK_SLEEP 失效 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swoole-src.