Hello, i'm french student in art school and totally noob in programming
, but i want to do my best.
My problem is : i used the httpclient in network library and i saved the html source in a .txt file. It work when i use a simple website. But i want to save the html source of this website http://www.boursorama.com/cours.phtml?symbole=CLMR09 to create an interactive animation with flash. But when i run the program, it send me this error :
java.net.UnknownHostException:
http://www.boursorama.com/cours.phtml?symbole=CLMR09
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at processing.net.Client.<init>(Client.java:60)
at HTTPClient.setup(HTTPClient.java:36)
at processing.core.PApplet.handleDraw(PApplet.java:1383)
at processing.core.PApplet.run(PApplet.java:1311)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at processing.net.Client.write(Client.java:442)
at processing.net.Client.write(Client.java:468)
at HTTPClient.setup(HTTPClient.java:37)
at processing.core.PApplet.handleDraw(PApplet.java:1383)
at processing.core.PApplet.run(PApplet.java:1311)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at processing.net.Client.write(Client.java:442)
at processing.net.Client.write(Client.java:468)
at HTTPClient.setup(HTTPClient.java:38)
at processing.core.PApplet.handleDraw(PApplet.java:1383)
at processing.core.PApplet.run(PApplet.java:1311)
at java.lang.Thread.run(Unknown Source)
Is it possible to save a source from a phtml ?
PS: It works with internet explorer but i can't use it because i want to refresh the source all the 10 seconds and rewrite it in a .txt file so flash use it in dynamic text.