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

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -