Skip to main content
Known Participant
March 31, 2011
Question

CFHTTP Function and Use?

  • March 31, 2011
  • 5 replies
  • 1402 views

what is the function of the CFHTTP tag and what is it used for often?

    This topic has been closed for replies.

    5 replies

    Known Participant
    April 1, 2011

    Im stuck on the part where I want google maps to provide me with the distance and place it in my template rather than me having to visit the webpage and manually type the address. I've finished most of it and this is the last part im stuck on.

    Known Participant
    April 1, 2011

    How would you use cfhttp to use a url and then try finding the last occurance of a word to get information needed? Im thinking of a loop but not sure how to implement it.

    Participating Frequently
    April 1, 2011

    I am bit confused here!!!

    Do you want to mention that - You will write a webservice which will find the last occurance of a word from DB/FILE and you will call that webservice using CFHTTP?

    NOTE - URL is an attribute of CFHTTP tag.

    Known Participant
    April 1, 2011

    I am writing a program that will be using some of googles API to find the distances between places locations that are stored in my DB. I want to find the distance but there are so many distance tags in the google XML and the last occurance of the distance tag contains the overall distance.

    Inspiring
    April 1, 2011

    If you have not already, take a few minutes and read the documentation, you'll find everything you need there

    here you go, http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_g-h_09.html


    Inspiring
    April 1, 2011

    It can be used to read a text file and return query object.

    Participating Frequently
    March 31, 2011

    CFHTTP makes a request from the server to a webpage (any webpage) as

    though the server were using a browser and returns information about it,

    including the HTTP headers and the HTML content of the page itself.

    Often used to consume SOAP webservices, and can also be used to "screen

    scrape" site content, such as grabbing a page from your own site and

    saving the content out to PDF.