Comments (4)
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.
could you please add what your exepected header is and what you're actually receiving?
from curl.
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.
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)
- curl_close problem HOT 1
- Notice "Undefined offset: 42" in protected/extensions/curl/Curl.php(32) when CURLOPT_HEADER option not set in extension config HOT 2
- you forgot finish addHeader function HOT 1
- Error sending array through POST
- wrong settings merge HOT 1
- Curl wrapper library and Elasticsearch
- adding follow_location emulation HOT 1
- There is no composer.json HOT 3
- _isAssoc method doesn't exist HOT 1
- Missing port number on GET HOT 1
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 curl.