facebook graph api - Java Proxy Server Settings at JVM Level -


i have developed java application connect facebook rest api , perform various tasks.

it has run corporate proxy server, have tried various jvm level proxy settings did not work me. have tried following

1.

system.setproperty("http.proxyhost", gethttphost()); system.setproperty("http.proxyport", gethttpport()); system.setproperty("https.proxyhost", gethttphost()); system.setproperty("https.proxyport", gethttpport()); 

2.

$> java -dhttp.proxyhost=proxyhosturl  -dhttp.proxyport=proxyportnumber  -dhttp.proxyuser=someusername  -dhttp.proxypassword=somepassword helloworldclass 

can tell me working recipe?


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -