It's not always useful to follow location redirects (301 or 302) because
some pages are using redirects instead of sending a 404 code if a page
doesn't exist, so the:
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
could cause problems.
For example:
http://www.dozentenscout.de/Mitglieder/details/Andrea-Kutschan
http://www.dozentenscout.de/Mitglieder/details/Andrea-Kutsch
The second URL results a various user from the home-page, so it would be
helpful to control this mechanism for example by an attribute. Like the
following for example:
public $follow_location = true; // should curl follow the location redirects
Original issue reported on code.google.com by pfefferle on 22 Mar 2010 at 5:05
Original issue reported on code.google.com by
pfefferle
on 22 Mar 2010 at 5:05Attachments: