In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1338 [In-Portal CMS] Data Management bug report always 2012-07-06 09:31 2012-07-25 05:29
alex  
alex  
normal  
closed 5.2.0-RC1  
fixed  
 
none 5.2.0  
https://groups.google.com/d/topic/in-portal-bugs/UwTPdhvo4qg/discussion
Fixes header being returned from curl request with followlocation setting
1
0001338: Headers are returned along with response, when curl requests with followLocation option sent
When trying to read page contents from given url via CURL library you might get 302 response header (redirect request to new page location) instead of 200 with proper page content.
To solve this CURL has FOLLOW_LOCATION option that can be enabled. However this option doesn't work, when "option_basedir" or "safe_mode" settings in php.ini file are used.

We solved this problem in 0001283 task (in 5.2.0-RC1), but a bug was made back then that resulted in headers returned along with queried url contents.
related to 0001373resolved  (5.2.1)alex Class kCurlHelper ignores GET parameters 
child of 0001283closed  (5.2.0)alex Problems with using Curl follow location feature in safe_mode or when open_basedir is enabled 
patch curl_followlocation_header_fix.patch (2,750) 2012-07-06 09:31
http://tracker.in-portal.org/file_download.php?file_id=1724&type=bug
Issue History
2012-08-15 06:06 alex Relationship added related to 0001373
2012-07-25 05:29 alex Note Added: 0004847
2012-07-25 05:29 alex Status resolved => closed
2012-07-06 09:34 alex Changeset attached 5.2.x r15426
2012-07-06 09:34 alex Note Added: 0004759
2012-07-06 09:34 alex Status reviewed and tested => resolved
2012-07-06 09:34 alex Fixed in Version => 5.2.0
2012-07-06 09:34 alex Resolution open => fixed
2012-07-06 09:34 alex Assigned To !COMMUNITY => alex
2012-07-06 09:34 alex Status needs testing => reviewed and tested
2012-07-06 09:34 alex Note Added: 0004758
2012-07-06 09:33 alex Assigned To => !COMMUNITY
2012-07-06 09:33 alex Developer => alex
2012-07-06 09:33 alex Status active => needs testing
2012-07-06 09:33 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/UwTPdhvo4qg/discussion
2012-07-06 09:32 alex Relationship added child of 0001283
2012-07-06 09:31 alex New Issue
2012-07-06 09:31 alex File Added: curl_followlocation_header_fix.patch
2012-07-06 09:31 alex Change Log Message => Fixes header being returned from curl request with followlocation setting
2012-07-06 09:31 alex Estimate Points => 1

Notes
(0004758)
alex   
2012-07-06 09:34   
Will test all together later.
(0004759)
alex   
2012-07-06 09:34   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001338: Headers are returned along with response, when curl requests with followLocation option sent
(0004847)
alex   
2012-07-25 05:29   
Since 5.2.0 version was released.