def run_http_prompt(args):
 bin_path = get_http_prompt_path()
 p = subprocess.Popen(([bin_path] + args), stdin=PIPE, stdout=PIPE)
 return p.communicate()

def run_http_prompt ( args ) : bin_path = get_http_prompt_path ( ) p = subprocess . Popen ( ( [ bin_path ] + args ) , stdin = PIPE , stdout = PIPE ) return p . communicate ( )
run http-prompt from terminal .