• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFHTTP returns wrong page

Explorer ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

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.


TOPICS
Advanced techniques

Views

432

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jun 22, 2006 Jun 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

Votes

Translate

Translate
Advocate ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

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
======================

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

LATEST
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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

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.
>
>
>
>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation