Thx for the quick answer !
I try to implement one of the google authentification api within processing: Either OAuth or ClientLogin – from scratch. ClientLogin seems simpler for a start, so i choosed this one.
I know that google already provide java client library that i could import to simplify the hard work.
Making it from scrath simply help me to understand how does that work as it for learning purpose.
So i'd like to send the HTTP requests from processing and handle XML received from google's servers.
I tried with the standard Network library to connect to google but got that error :
java.net.UnknownHostException: www.google.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at java.net.Socket.<init>(Socket.java:372)
at java.net.Socket.<init>(Socket.java:186)
at processing.net.Client.<init>(Unknown Source)
at GoogleTest.setup(GoogleTest.java:64)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
I'm at work so behind a proxy server, but i used Properties class to set up the http server and i can load images from the internet with success.
Is tried to connect using port 80 and 443 without success.
The line dropping the error is :
Code:
c = new Client(this,"www.google.com",80);
Hope that help to understand my problem.
Regards.