Skip to content

FEATURE REQUEST: add proxy option when generating client code #370

@sbOogway

Description

@sbOogway

i d like to add a feature that when importing a curl request it recognizes proxy header in curl --socks5-hostname and generates client code with proxy in it.

example
input
curl --socks5-hostname localhost:9050 https://example.com

output

import requests

url = "https://example.com"
payload = ""
headers = {}
proxies = {
    'http': 'socks5://localhost:9050',
    'https': 'socks5://localhost:9050',
}

response = requests.request("GET", url, data=payload, headers=headers, proxies=proxies)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions