Giter Club home page Giter Club logo

Comments (4)

dikderoy avatar dikderoy commented on June 3, 2024

Over the internet people also saying what explicitly setting an Expects header will also solve this issue, but not all services are working correctly with such solution

from curl.

hackerone avatar hackerone commented on June 3, 2024

could you please add what your exepected header is and what you're actually receiving?

from curl.

dikderoy avatar dikderoy commented on June 3, 2024

that i am actualy getting is described on top of the issue. - multiple HTTP 100 headers before actual response headers.
expected is that I'll receive ONLY headers belonging to response itself without multiple HTTP 100 before them.

with your current code

 $headers = explode("\r\n", trim($this->_header));
            $output = array();
            $output['http_status'] = array_shift($headers);

it leads to wrong http_status in getHeaders() - 100 instead of actual 200.

from curl.

hackerone avatar hackerone commented on June 3, 2024

With v 1.1 this should be fixed.
Also if you want the status code please use the getStatus function.

On 8 Aug 2014, at 18:21, Bulgakov Roman [email protected] wrote:

that i am actualy getting is described on top of the issue. - multiple HTTP 100 headers before actual response headers.
expected is that I'll receive ONLY headers belonging to response itself without multiple HTTP 100 before them.

with your current code

$headers = explode("\r\n", trim($this->_header));
$output = array();
$output['http_status'] = array_shift($headers);
it leads to wrong http_status in getHeaders() - 100 instead of actual 200.


Reply to this email directly or view it on GitHub.

from curl.

Related Issues (11)

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.