Skip to content

Is value set with CURLOPT_USERAGENT overriden when using custom headers with CURLOPT_HTTPHEADER? #8118

Answered by jay
ribtoks asked this question in Q&A
Discussion options

You must be logged in to vote

In recent versions the header list overrides the set user agent and referer but I'm not sure if it's always been that way. I would set one or the other. Is there a reason you need to set both?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ribtoks
Comment options

@jay
Comment options

@ribtoks
Comment options

Answer selected by ribtoks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants