开发者

How could we change our IP while executing POST in HttpClient on Apache Library?

开发者 https://www.devze.com 2023-04-02 05:45 出处:网络
I\'m trying to mimicing a form-post by using this HttpClient library. and it seems okay without any problem.

I'm trying to mimicing a form-post by using this HttpClient library. and it seems okay without any problem.

Only 1 things matter. Is there any way to change the IP A开发者_开发问答ddress of the sender(us)... by using this library? I didn't found the Doc mentioning that one.

I'm just thinking that ... Would it be possible if I just used 1 pc and 1 internet connection and executing the form-post and changing my own IP Address without interrupting the connection via this library?

correct me if i'm wrong.please.


Is there any way to change the IP Address of the sender(us)... by using this library?

It is not possible from pure Java.

In fact, it is only possible if you can change the machine's IP address ... or use some kind of OS provided "raw" network facility that allows you to fake/spoof the IP address in transmitted network packets.

I'd advise you to not try this. Think of a different approach to whatever it is that you are trying to achieve.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号