Adding Client ID in header in PHP?

You should use cURL.