Lines Matching refs:putheader
342 h.putheader('Content-Type', 'application/x-www-form-urlencoded')
343 h.putheader('Content-Length', '%d' % len(data))
346 if proxy_auth: h.putheader('Proxy-Authorization', 'Basic %s' % proxy_auth)
347 if auth: h.putheader('Authorization', 'Basic %s' % auth)
348 if realhost: h.putheader('Host', realhost)
349 for args in self.addheaders: h.putheader(*args)
434 h.putheader('Content-Type',
436 h.putheader('Content-Length', '%d' % len(data))
439 if proxy_auth: h.putheader('Proxy-Authorization', 'Basic %s' % proxy_auth)
440 if auth: h.putheader('Authorization', 'Basic %s' % auth)
441 if realhost: h.putheader('Host', realhost)
442 for args in self.addheaders: h.putheader(*args)