Code Monkey home page Code Monkey logo

Comments (7)

NathanFreeman avatar NathanFreeman commented on June 20, 2024

请描述一下你想要allow_redirects实现什么功能

from swoole-src.

Mxmilu666 avatar Mxmilu666 commented on June 20, 2024

就最简单的 比如说get() download()支持302跟随
因为我现在需要下载文件,但是下载的地址是302过去的,如果download()的话就无法下载到目标文件

from swoole-src.

Mxmilu666 avatar Mxmilu666 commented on June 20, 2024

可能我描述的不是很清楚,是HTTP/WebSocket客户端

from swoole-src.

NathanFreeman avatar NathanFreeman commented on June 20, 2024

HTTP/WebSocket客户端不支持这么操作,看看能否通过HTTP/WebSocket客户端的getHeaders()判断状态码是否302,是的话直接访问响应头的Location指向的地址。

from swoole-src.

Mxmilu666 avatar Mxmilu666 commented on June 20, 2024

但是我302跳转可能是三个302或者两个302 那没办法的话我只能自己写逻辑了:(

from swoole-src.

twose avatar twose commented on June 20, 2024

你说的是 Coroutine HTTP Client 吧,现在都不用那个了,直接用 cURL 就有,社区库用 guzzle 就可以。

from swoole-src.

Mxmilu666 avatar Mxmilu666 commented on June 20, 2024

那我看看别的库什么的

from swoole-src.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.