Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Binding a input character stream to an HTML page transmitted over HTTP

 
Steve Buck
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically I want to find a way to create an input character stream from the HTML kicked back from an HTTP request.

So I can select a URL, the code would then be able to grab the HTML and turn it to an input stream.

I'm not looking for anything to parse it--thats all done by me programmatically.

I just need to -get- the data somehow.

I have no idea what to look into. I've never touched this sort of stuff in Java (or any language heh)
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the URL and HttpURLConnection classes. Everything you need is there. If you have trouble putting it together from the JavaDoc don't feel bad. Google for "httpurlconnection tutorial" and I bet you hit something good. In fact, google for "java anytopic tutorial" almost always hits gold.

If you get some code going and have trouble, jump up to the Sockets and Internet Protocols forum and post what you have.
 
Steve Buck
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Stan James. I'll look into those more (I've used URL lightly with JAX-RPC and whatnot).

cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic