Fix cURL
This commit is contained in:
parent
949438203c
commit
fb53c015f6
11
strmlt.py
11
strmlt.py
|
@ -32,11 +32,16 @@ if __name__ == "__main__":
|
||||||
uid = st.number_input("What is your user ID?", min_value=1, value=28899)
|
uid = st.number_input("What is your user ID?", min_value=1, value=28899)
|
||||||
uid = str(uid)
|
uid = str(uid)
|
||||||
|
|
||||||
curl_value = ""
|
curl_value = """curl 'https://www.gjopen.com/' \\
|
||||||
|
-H 'authority: www.gjopen.com' \\
|
||||||
|
-H '...: ...'"""
|
||||||
curl_command = st.text_area(
|
curl_command = st.text_area(
|
||||||
"Ugh... Gimme your cURL info...", value=curl_value.strip()
|
"Ugh... Gimme your cURL info...", value=curl_value
|
||||||
)
|
)
|
||||||
|
curl_command = "".join(curl_command.split("\\\n"))
|
||||||
|
|
||||||
|
if curl_command != curl_value:
|
||||||
|
|
||||||
curl_content = uncurl.parse_context(curl_command)
|
curl_content = uncurl.parse_context(curl_command)
|
||||||
headers, cookies = curl_content.headers, curl_content.cookies
|
headers, cookies = curl_content.headers, curl_content.cookies
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user