MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / startbody

Method startbody

thirdparty/clientform/clientform.py:408–421  ·  view source on GitHub ↗

prefix is ignored if add_to_http_hdrs is true.

(self, ctype=None, plist=[], prefix=1,
                  add_to_http_hdrs=0, content_type=1)

Source from the content-addressed store, hash-verified

406 self._headers = []
407
408 def startbody(self, ctype=None, plist=[], prefix=1,
409 add_to_http_hdrs=0, content_type=1):
410 """
411 prefix is ignored if add_to_http_hdrs is true.
412 """
413 if content_type and ctype:
414 for name, value in plist:
415 ctype = ctype + ';\r\n %s=%s' % (name, value)
416 self.addheader("Content-Type", ctype, prefix=prefix,
417 add_to_http_hdrs=add_to_http_hdrs)
418 self.flushheaders()
419 if not add_to_http_hdrs: self._fp.write("\r\n")
420 self._first_part = True
421 return self._fp
422
423 def startmultipartbody(self, subtype, boundary=None, plist=[], prefix=1,
424 add_to_http_hdrs=0, content_type=1):

Callers 3

startmultipartbodyMethod · 0.95
_write_mime_dataMethod · 0.80
_write_mime_dataMethod · 0.80

Calls 3

addheaderMethod · 0.95
flushheadersMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected