Codebase list libhttp-browserdetect-perl / 7275515
Detect /^curl/ as well as /libcurl/ for curl library Andrew Moise 8 years ago
2 changed file(s) with 18 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
737737 $browser = 'browsex';
738738 $browser_tests->{$browser} = 1;
739739 }
740 elsif ( index( $ua, "libcurl" ) != -1 ) {
740 elsif ( index( $ua, "libcurl" ) != -1 || $ua =~ /^curl/ ) {
741741 $browser = 'curl'; # Test gets set during robot check
742742 }
743743 elsif ( index( $ua, "puf/" ) != -1 ) {
915915 elsif ( index( $ua, "baiduspider" ) != -1 ) {
916916 $r = 'baidu';
917917 }
918 elsif ( index( $ua, "libcurl" ) != -1 ) {
918 elsif ( index( $ua, "libcurl" ) != -1 || $ua =~ /^curl/ ) {
919919 $r = 'curl';
920920 $robot_tests->{lib} = 1;
921921 }
53285328 "other" : null,
53295329 "version" : "1.16"
53305330 },
5331 "curl/7.45.0" : {
5332 "browser" : "curl",
5333 "browser_beta" : ".0",
5334 "browser_major" : "7",
5335 "browser_minor" : ".45",
5336 "browser_string" : "curl",
5337 "match" : [
5338 "curl",
5339 "robot",
5340 "lib"
5341 ],
5342 "robot" : "curl",
5343 "robot_beta" : ".0",
5344 "robot_string" : "curl",
5345 "robot_version" : "7.45"
5346 },
53315347 "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" : {
53325348 "match" : [
53335349 "robot",