Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get via http

Status
Not open for further replies.

rcusr

Technical User
Sep 4, 2002
26
0
0
GB
Hi All,

I need to be able to call up an external web page, so I can check for certain info on that page.

I've tried doing via http this with coldfusion using the <cfhttp> tag, the only problem is that the page appears to time out and as such truncates. I was recommended by someone that java would do this better...?

This leads me on to my questions
a) is it possible
b) if so, what function would I use

Thanks,

Richard

 
Richard,

What does Java have to do with Coldfusion?

a) is it possible
Yes
b) if so, what function would I use
java.net.HttpURLConnection class


-pete
 
Hi,

when you say
&quot;I need to be able to call up an external web page, so I can check for certain info on that page. &quot;

.... this is a pretty wide statement ... a web page is only a combination of rendered commands in the form of HTML and JavaScript.. you can't drag info off it ...


To get an intelligent response from the web, or a URL, you need to know what language it is speaking. For example, a server that listen to a URL may chuck out SOAP, XML, CORBA protocol, text or any manner of MIME types - you need to know what you are requesting, and what you are expecting ... Java can handle pretty much any kind of server response but some kind of scripting language like colfusoin aint gonna handle it !

My advice is look at what you want, who is supplying the data, and what kind of primitive type they are supplying
it in - then you'll be ready to choose the languge to decode it in.

Ben
 
Hi Guys, thanks for your help.

I'll elaborate on what I was trying to do:

I'm trying to &quot;get&quot; the flat html pages from altavista's search result page. Once I've got it, I then want to apply some server side scripting to check in the code to see if my domain is listed, and hopefully figure out which position its in.

Does this mean I don't have to figure out what language they are using and can just use Pete's suggested class?: java.net.HttpURLConnection


Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top