gcm: Wraps the curl header and the endpoint in arrays