mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 15:31:45 +00:00
Update server2.py
This commit is contained in:
parent
ef2d36289a
commit
1b48ca481b
|
@ -4,8 +4,9 @@ import sys
|
|||
from _thread import *
|
||||
import base64
|
||||
from datetime import datetime
|
||||
import requests
|
||||
from platform import python_version
|
||||
|
||||
import requests
|
||||
from decouple import config
|
||||
|
||||
try:
|
||||
|
@ -83,7 +84,7 @@ def conn_string(conn, data, addr):
|
|||
def proxy_server(webserver, port, scheme, url, conn, addr, data):
|
||||
try:
|
||||
headers = {
|
||||
"User-Agent": "WebProxyTest",
|
||||
"User-Agent": "php-httpproxy/0.1-dev (Client; Python " + python_version() + ")",
|
||||
}
|
||||
data = {
|
||||
"data": base64.b64encode(data).decode("utf-8"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user