• Home
  • Raw
  • Download

Lines Matching refs:con

190         self.con = httplib.HTTPConnection('localhost', self.PORT)
191 self.con.connect()
194 self.con.request('GET', '/')
195 res = self.con.getresponse()
199 self.con._http_vsn_str = 'HTTP/1.1\n'
200 self.con.putrequest('XYZBOGUS', '/')
201 self.con.endheaders()
202 res = self.con.getresponse()
206 self.con._http_vsn_str = 'FUBAR'
207 self.con.putrequest('GET', '/')
208 self.con.endheaders()
209 res = self.con.getresponse()
213 self.con._http_vsn_str = 'HTTP/9.9.9'
214 self.con.putrequest('GET', '/')
215 self.con.endheaders()
216 res = self.con.getresponse()
220 self.con._http_vsn_str = ''
221 self.con.putrequest('GET', '/')
222 self.con.endheaders()
223 res = self.con.getresponse()
228 self.con._http_vsn_str = ''
229 self.con.putrequest('CUSTOM', '/')
230 self.con.endheaders()
231 res = self.con.getresponse()
235 self.con._http_vsn = 99
236 self.con._http_vsn_str = 'HTTP/9.9'
237 self.con.putrequest('GET', '/')
238 self.con.endheaders()
239 res = self.con.getresponse()
243 self.con._http_vsn_str = ''
244 self.con.putrequest('', '')
245 self.con.endheaders()
246 res = self.con.getresponse()
250 self.con.putrequest('GET', '/')
251 self.con.putheader('Connection', 'close')
252 self.con.endheaders()
253 res = self.con.getresponse()
257 self.con._http_vsn_str = 'HTTP/1.1'
258 self.con.putrequest('GET', '/')
259 self.con.putheader('Connection', 'keep-alive')
260 self.con.endheaders()
261 res = self.con.getresponse()
265 self.con.request('TEST', '/')
266 res = self.con.getresponse()
270 self.con.request('KEEP', '/')
271 res = self.con.getresponse()
273 self.con.request('TEST', '/')
274 self.addCleanup(self.con.close)
277 self.con.request('KEYERROR', '/')
278 res = self.con.getresponse()
282 self.con.request('CUSTOM', '/')
283 res = self.con.getresponse()
289 self.con.request('SEND_ERROR', '/{}'.format(code))
290 res = self.con.getresponse()
303 self.con.request('HEAD', '/{}'.format(code))
304 res = self.con.getresponse()