How can I set header only for proxy in https request?

I need to do post requests to a target host via proxy using Java code. But I need to send to proxy some parameter in header (only for proxy). In curl I can do this using command like that:

curl -k -x **--proxy-header 'Proxy-Key: Proxy-Value'** -H 'Key: Value' -d 'request' ""

What setting is similar to --proxy-header for the Apache HttpClient?

Category:java Views:2 Time:2019-03-02

Related post

Copyright (C), All Rights Reserved.

processed in 0.099 (s). 11 q(s)