This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generates request data payload to be sent as 'form-data' | |
| REQUEST_FORM_DATA_BOUNDARY = "REQUEST_FORM_DATA_BOUNDARY" | |
| FORM_DATA_STARTING_PAYLOAD = '--{0}\r\nContent-Disposition: form-data; name=\\"'.format(REQUEST_FORM_DATA_BOUNDARY) | |
| FORM_DATA_MIDDLE_PAYLOAD = '\"\r\n\r\n' | |
| FORM_DATA_ENDING_PAYLOAD = '--{0}--'.format(REQUEST_FORM_DATA_BOUNDARY) | |
| REQUEST_CUSTOM_HEADER = { | |
| 'content-type': "multipart/form-data; boundary={}".format(REQUEST_FORM_DATA_BOUNDARY), | |
| 'Content-Type': "", | |
| 'cache-control': "no-cache" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """A simple python script template. | |
| """ | |
| import os | |
| import sys | |
| import argparse |