CFHTTP to save a .gif snapshot of webpage?

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFHTTP to save a .gif snapshot of webpage?

    I want to check URLs people enter in thier account automatically. So I want to
    take the link, automatically go to each link and save a picture of the front
    page (say the top 400x400 pixels) so I can come back later and review them to
    be sure the website is active and has valid content.

    Anyone have any good methods for doing this OR another way to automatically
    check to see if a URL entered is a valid one with a working website?

    flasheister Guest

  2. Similar Questions and Discussions

    1. CFhttp to download and save image
      This shows the image as expected : <img src='http://www.comune.pesaro.ps.it<cfoutput>#img#</cfoutput>' The following does not save the same image...
    2. Save as Webpage error?
      I am no longer getting the 'Save as Webpage' choice under file. Now all I see is 'Export as Web Page'. I am working in a .htm file. What do I need...
    3. How to save excel from webpage?
      I have a webpage containing a link to a spreadsheet <a href="somefilename.xls">click</a> When the link is clicked a spreadsheet opens in internet...
    4. Can I save snapshot with image ?
      You cannot do that. The simplest thing to do is save periodic copies of your image. You can then easily go back to an earlier variant.
    5. FP2K Save as Webpage question
      File/New/Publication Type/Word Document Import multi-page Word XP doc Get a series of pages linked to each other Save as web page and you...
  3. #2

    Default Re: CFHTTP to save a .gif snapshot of webpage?

    That's a bit of overkill, and you'd have to build an application to do that
    since CFHTTP wont do all that for you.

    It sounds like you just want to 1) validate the URL is good, and 2) check the
    content for something that should be there, as a kind of positive control.

    Use CFHTTP method=head to get just the headers to check for good status code
    (200 OK).

    Use CFHTTP method=get and then parse the CFHTTP filecontent for some keywords
    that should appear for every request. If the keywords don't appear then the
    content has changed.


    serat Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139