Setting request header for VideoCapture

I’m trying to open a url to stream and play using VideoCapture, but it only works if the request has the referrer header set. Is it possible to tell VideoCapture to add a header to the request to the url?