> Is it possible to send name to a search page for telephonenumber on the > internet, and get the answer back in the program?? Ex. if you made a > program to send "Lerberg" to www.gulesider.no, and then receive > all the answer back in the program afterwards.
Yes, you can do that using any HTTP client component such as the one you can find in the freeware ICS (http://wiki.overbyte.be). With a HTTP component in your program, you can send a request just like a browser do and then grab the response. See the HttpTst sample program provided with ICS. But things are not always very easy. The link you mention (www.gulesider.no) return a HTML form where the user can enter the phone number and then click on a button to submit the actual request. You have to carefully analyse the HTML code from the webpage to see what are the fields in the form and what is the form's action URL because this is what your really need. Then you'll receive the reply which is suitable for display. It mean you'll have to exact the useful information from the HTML. And there are some traps: maybe the website is using a cookie to prevent too much easy automating. You could have to first granb the cookie by requesting the main page and the only request what you really need, providing the cookie along with your request. There can also be complex pages with framesets, iframe and other HTML gadget which make them not easily understandable. And finally there could be javascript used to build even more complex pages. Best regards, -- francois.pie...@overbyte.be Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi