Skip to content

Setting proxy by attribute does not work #154

Description

@richardpenman

I understood from this example that proxies could be set by attribute, however this did not work in my test:

import primp

proxy = 'XXX'
url = 'https://icanhazip.com/'

client1 = primp.Client(proxy=proxy)
print(client1.get(url).text) # returns the proxy IP

client2 = primp.Client()
client2.proxy = proxy
print(client2.get(url).text) # returns your own IP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions