5 Replies Latest reply on Jun 22, 2006 11:52 AM by Kronin555

    CFHTTP returns wrong page

    yoman Level 1
      Yesterday a CFHTTP tag started returning the wrong page. When the page is accessed through a browser, it looks like this: http://www.fosters.com/apps/pbcs.dll/section?category=NEWS26

      When the page is captured with CFHTTP, it looks like this http://www.portsmouthnh.com/news/fosters.cfm.

      The CF code is very simple:
      <cfhttp url=" http://www.fosters.com/apps/pbcs.dll/section?category=NEWS26" method="GET" resolveurl="true" timeout="35" charset="Windows-1252" throwonerror="Yes">
      <cfset fosters="#cfhttp.filecontent#">
      <cfoutput>#fosters#</cfoutput>

      What's up with that? No changes have been made to the CF. My site is virtually hosted so I don't know if any server changes were made, although I'm asking. The remote site generally requires registration, but we have a working agreement and this page has been fine for months.

      What could cause that? Tx.


        • 1. Re: CFHTTP returns wrong page
          Kronin555 Level 1
          Huh. I cut/pasted your exact CF code and it worked fine for me.

          CFMX 6.1 running on Solaris 8.

          Just so we're talking about the same thing, I got back a page that looks like:
          ======================
          Green chosen for Pease post

          Ports director renomination on hold amid questions

          Seven new allegations against Portsmouth woman
          ======================
          • 2. Re: CFHTTP returns wrong page
            Level 7
            I'm confused to, your examples look exactly the same to me.

            yoman wrote:
            > Yesterday a CFHTTP tag started returning the wrong page. When the page is
            > accessed through a browser, it looks like this:
            > www.fosters.com/apps/pbcs.dll/section?category=NEWS26
            >
            > When the page is captured with CFHTTP, it looks like this
            > www.portsmouthnh.com/news/fosters.cfm.
            >
            > The CF code is very simple:
            > <cfhttp url=" http://www.fosters.com/apps/pbcs.dll/section?category=NEWS26"
            > method="GET" resolveurl="true" timeout="35" charset="Windows-1252"
            > throwonerror="Yes">
            > <cfset fosters="#cfhttp.filecontent#">
            > <cfoutput>#fosters#</cfoutput>
            >
            > What's up with that? No changes have been made to the CF. My site is virtually
            > hosted so I don't know if any server changes were made, although I'm asking.
            > The remote site generally requires registration, but we have a working
            > agreement and this page has been fine for months.
            >
            > What could cause that? Tx.
            >
            >
            >
            >
            • 3. CFHTTP returns wrong page
              yoman Level 1
              Apparently the problem went away. I talked to the newspaper that creates the pages, but they had no idea why the problem started or why it stopped. Another computer mystery ... Tx anyway.

              UPDATE: Oops, spoke to soon. The page pointed to an alternate source, which sort of worked. The bad page is still bad. See
              http://www.portsmouthnh.com/news/test.cfm which theoretically grabs http://www.fosters.com/apps/pbcs.dll/section?category=NEWS26
              • 4. Re: CFHTTP returns wrong page
                Level 7
                The one thing I might wonder is was some kind of caching involved so
                that one version you where getting was a cached older version?

                yoman wrote:
                > Apparently the problem went away. I talked to the newspaper that creates the pages, but they had no idea why the problem started or why it stopped. Another computer mystery ... Tx anyway.
                • 5. Re: CFHTTP returns wrong page
                  Kronin555 Level 1
                  Post the entire contents of test.cfm.

                  Like I said in my first post, I copied/pasted your exact <cfhttp> code and got the correct page back.