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)
- Discuss: differences in memory usage between websocket servers with coroutine and asynchronous styles HOT 4
- hyperf:执行pgsql查询,worker进程退出
- php官方docker的alpine包无法开启sqlite
- swoole 5.1.2编译安装提示error: ‘gettid’ was not declared in this scope; did you mean ‘getuid’ HOT 7
- Using package_length_func HOT 9
- Coroutine\Socket客户端绑定地址失败 HOT 5
- php.ini enable swoole extension composer error : segmentation fault php composer HOT 3
- postgresql在服务端主动断开连接时swoole无法捕获异常 HOT 10
- 5.1.2 Context::parse_multipart_data 导致abort 进程退出 HOT 11
- A bug occurred in Swoole-v5.1.1, please report it. HOT 19
- Websocket connection failed. SSL related Issue? HOT 1
- Swoole not supporting partitioned cookie parameter HOT 1
- Alpine + Swoole + PgSQL on the host = `could not send SSL negotiation packet: Resource temporarily unavailable` HOT 16
- 已解决
- 开启一键协程化之后, `proc_open()` 似乎会受到先前空方法体的 `run(function() {});` 的影响。 HOT 1
- Worker exits without much information HOT 3
- Websocket服務,調用Task做訊息發送,出現session does not exits HOT 5
- \Swoole\Server::shutdown never gets called and signals don't seem to work with \Swoole\Process::signal() / pcntl_signal() HOT 4
- A bug occurred in Swoole-v5.1.2, please report it HOT 26
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.