Skip to content

crpark64/curl-with-resolved-ipaddr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

curl-with-resolve-ipaddr

Using pycurl with connect to resolved ip address.

Download pycurl for windows from github

Install

c:\ ... > python -m pip install pycurl-7.43.0-cp35-none-win32.whl

Edit Source

Please edit and test the lower one with source.

protocol		= 'http://'
targetDomain	= 'jsonplaceholder.typicode.com'
uri				= '/posts'
destIP			= '172.64.129.28'
destPort		= '443'

The real address of jsonplaceholder.typicode.com is 172.64.129.28, but you can edit destIp and connect it to 8.8.8.8.

Usage

c:\ ... > python.exe curl.py

Result

Status: 201
Total Time: 0.843552
Primary IP: 172.64.129.28 Port: 80
Result Body
{
    "hello": "world",
    "id": 101
}

About

Using pycurl with connect to resolved ip address.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages