Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Problem with redirect headers management and CURLOPT_HEADER #1

Open
shulard opened this issue Mar 18, 2014 · 0 comments
Open

Problem with redirect headers management and CURLOPT_HEADER #1

shulard opened this issue Mar 18, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@shulard
Copy link
Member

shulard commented Mar 18, 2014

We use the CURLOPT_HEADER option to retrieve headers returned by the server.

When the URL retrieved was redirected by a 3XX code, the headers from the first call and the redirected page are received.

Example with the URL http://jeu.info/course.html which redirect with 301 to http://jeu.info/, these headers are given by the CURLOPT_HEADER option:

HTTP/1.1 301 moved permanently
Server: nginx
Date: Tue, 18 Mar 2014 09:15:43 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: ASP.NET
location: http://jeu.info/
Content-Length: 0
Set-Cookie: ASPSESSIONIDQATRTDCS=PFLKGCNDAFJDANEGOKBFDMMM; path=/
Cache-control: private

HTTP/1.1 200 OK
Server: nginx
Date: Tue, 18 Mar 2014 09:15:43 GMT
Content-Type: text/html
Content-Length: 133325
Last-Modified: Tue, 18 Mar 2014 09:00:06 GMT
Connection: keep-alive
Accept-Ranges: bytes
@shulard shulard added the bug label Mar 18, 2014
@shulard shulard self-assigned this Mar 18, 2014
@shulard shulard modified the milestone: v1.3.0 Jul 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant