Skip to main content
September 7, 2007
Question

cfhttp - can't get salesgenie.com

  • September 7, 2007
  • 2 replies
  • 459 views
I can't seem to get the filecontent for salesgenie.com using cfhttp. Can anyone else see if they can get the content using this code?
    This topic has been closed for replies.

    2 replies

    Inspiring
    September 10, 2007
    aparsons wrote:
    > anyone?

    the site appears to be down.
    September 10, 2007
    anyone?
    Inspiring
    September 10, 2007
    > url="#objGet.ResponseHeader.Location#"

    1. You need to add #strBaseUrl# to the url because #objGet.ResponseHeader.Location# appears to be a local path like this: /SalesGenie/Index.aspx

    url="#strBaseUrl##objGet.ResponseHeader.Location#"

    2. The server is IIS and seems to be using HTTPCompression. Try adding these parameters

    <cfhttpparam type="header" name="Accept-Encoding" value="*" />
    <cfhttpparam type="Header" name="TE" value="deflate;q=0">

    http://www.talkingtree.com/blog/index.cfm/2004/7/28/20040729

    ><cfoutput><cfdump var="#objGet#"></cfoutput>

    3. It isn't related to your problem, but no need for <cfoutput> tags around a cfdump.