pycurl_connect.setopt(pycurl.URL, your_url)
pycurl_connect.setopt(pycurl.HTTPHEADER, ['header_name1: header_value1',
    'header_name2: header_value2'])
pycurl_connect.perform()
Custom headers with pycurl 