Skip to main content
Inspiring
June 22, 2006
Answered

CFHTTP returns wrong page

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.


This topic is closed to new replies. Start a new post to keep the conversation going.
yoman-B9oqA1Correct answer
Inspiring
June 22, 2006
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

5 replies

Inspiring
June 22, 2006
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.
>
>
>
>
Translate
Participating Frequently
June 22, 2006
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
======================
Translate
yoman-B9oqA1AuthorCorrect answer
Inspiring
June 22, 2006
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
Translate
Participating Frequently
June 22, 2006
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.
Translate