My friend and I are working on a school project and our hope was to have a Java program take a zip code from the user and then connect to weather.com (or any other web site) and look up the local weather. I assume this is possible but I cannot quite figure it out. I am able to get the source code from a site by using the instream, however, it is difficult to find the information I need in the source code. Is there any way to access the page and retrieve the actual text from the site. Thanks!
sheff21
0
Newbie Poster
Recommended Answers
Jump to PostHave you managed to send the site a request to look up the weather (based on the zip you send it) yet? If not, plain text isn't going to do you any good. So let us know which part you are stuck at.
Jump to PostSheff21, you need to learn first about HTTP. And how data is sent to a web page via GET or POST.
You send a request to a Web page via the GET …
All 5 Replies
BestJewSinceJC
700
Posting Maven
sheff21
0
Newbie Poster
stephen84s
550
Nearly a Posting Virtuoso
Featured Poster
verruckt24
438
Posting Shark
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.