Hi Im trying to get the page content from a website, but security I want to use
some proxies but it doesn't work when there is ports specified.
Here is the code
import httpclient
let proxy = newProxy("ip:port")
let client = newHttpClient(proxy = proxy)
echo client.getContent("https://somewebsite.com")
Run
I got the following error:
/home/gabriel/Bureau/NIM/nimtrogen/gen.nim(123) gen
/home/gabriel/Bureau/NIM/nimtrogen/gen.nim(68) check
/usr/lib/nim/pure/httpclient.nim(1095) getContent
/usr/lib/nim/pure/httpclient.nim(1090) get
/usr/lib/nim/pure/httpclient.nim(1066) request
/usr/lib/nim/pure/httpclient.nim(1042) request
/usr/lib/nim/pure/httpclient.nim(992) requestAux
/usr/lib/nim/pure/httpclient.nim(879) newConnection
/usr/lib/nim/pure/net.nim(1859) dial
/usr/lib/nim/pure/nativesockets.nim(303) getAddrInfo
/usr/lib/nim/pure/includes/oserr.nim(94) raiseOSError
Error: unhandled exception: Invalid argument
Additional info: "Name or service not known" [OSError]
Run
Thanks for your help