Hi, I was wondering how to code this request in PHP curl --request GET \ --user-agent "Your Client Name/1.0" \ --header "Authorization: Basic YWRtaW46WW91ckFQSUtleUhlcmU=" \ https://www.example.com/api/v2/products Any help is highly appreciated. Kind regards
Use the following setopt options: user-agent -> CURLOPT_USERAGENT header -> CURLOPT_HTTPHEADER There is a good example in the comments section (in the above setopt link) on how to add Authorization: Basic option to headers.