0

Is there any difference in performance when using Googlebot vs Mozilla as the CURLOPT_USERAGENT? I'm hypothesizing that some pages might output simpler HTML when Googlebot is the useragent, but I don't really know.

Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
Adam Capriola
  • 112
  • 1
  • 7
  • 1
    Since you aren't writing GoogleBot and you aren't writing Mozilla, don't claim to. Your user agent header should name the user agent you are writing. Don't masquerade as something you are not. – Quentin Sep 11 '11 at 20:00
  • What would I use as my user agent then? The URL of my website? I don't mean to be ignorant about this stuff, I'm kind of a newbie and from looking at CURL examples most either use GoogleBot or Mozilla. – Adam Capriola Sep 11 '11 at 21:35
  • The usual convention is to use whatever name you have given it, along with a URL to a page about it or an email address that people can use to get in touch if there is a problem with it. – Quentin Sep 12 '11 at 05:53
  • We could use some more information on what your application/website is doing in order to give a better answer. – Jens Mühlenhoff Sep 12 '11 at 07:30

1 Answers1

0

Setting a user agent won't make your cURL call faster. In fact, in some servers, they intend to block suspicious User Agent. Therefore, just use the default user agent is fine.

Raptor
  • 53,206
  • 45
  • 230
  • 366