I need to call an api which is provided by some other coworkers, this api has set permission according to ip of caller's machine, after some try and search, i found that i can modify the X-Forwarded-For header to the allowed ip to successfully call the api.
curl http://.... -H "X-Forwarded-For: 211.100.19.167"
Congratulations!