display content from another server

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default display content from another server

    We have a site (i.e. [url]www.mysite.com[/url]) running CF MX 6.1. We have another (Linux)
    server that is running a cgi (perl) blog application at another IP/URL. Is
    there a way for me to serve up the blog pages from the remote server to appear
    as if it's served up from my CFMX server (i.e. show the remote cgi in the
    browser address bar as [url]www.mysite.com/blogs[/url]). We don't want to bog down our
    server with the cgi/perl/mysql of the blog site but we want it to look like we
    are still on the same site. I posted a similar question to a non-CF forum and
    they suggested using fopen in php - so I'm wondering if there is a similar
    function in CF or some other way to do this?

    Thanks in advance for your time!

    Funke Guest

  2. Similar Questions and Discussions

    1. How to Display Repeat List In Spry Tab Content
      Hello, I am new to Spry. I thought I could just create an XML dataset, Insert a Spry Tabbed Panel, and then insert a Spry repeat list inside the...
    2. Flash Player won't display content in IE
      The Flash 9 player on a system in our organization will not display content. Instead the flash window disappears and is replaced with a double quote...
    3. Flash player 9 will only display content when clicked on
      Seeing this issue on PC's with non-Administrator rights and only with Flash Player 9. Content won't launch or be displayed until the user clicks on...
    4. 4.1.21 display japanese content phpmyadmin
      I am using phpMyAdmin to see japanese text in side of the table. However, I can only see menu items in japanese but the content is somehow...
    5. Getting HTML content from one Server and Saving it on another Server
      Hi everyone, I'm incharge of updating the stats on a chl hockey teams Web Site. I would like to know if there is a way to be able to save the...
  3. #2

    Default Re: display content from another server

    CFHTTP?
    Mr Black Guest

  4. #3

    Default Re: display content from another server

    Thanks. I was wondering if/how I could do this with CFHTTP. I have been unable to find adequate resources, documentation, and examples of usage for CFHTTP. Any suggestions?
    Funke Guest

  5. #4

    Default Re: display content from another server

    Perhaps, Cold Fusion documentation is a good point to start.

    Mr Black Guest

  6. #5

    Default Re: display content from another server

    [url]http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p58.htm[/url]

    is THE best place/page to find information about that. I will tell you
    that yes you can call in pages via cfhttp... but as far as navigating
    around in the blog... i believe the links will take you to your linux
    server the first time they click a link that came from the blog.

    Funke wrote:
    > Thanks. I was wondering if/how I could do this with CFHTTP. I have been unable to find adequate resources, documentation, and examples of usage for CFHTTP. Any suggestions?
    downtroden Guest

  7. #6

    Default Re: display content from another server

    here is an example... this site.. [url]http://www.healthwork.com.au/[/url] has a links
    page accessed from the News & Events menu when you enter the site. The links
    page actually loads it's content from another site [url]http://www.ntmedic.com.au[/url]

    the code used to include the links from the other site is as follows:

    <cfhttp url="www.ntmedic.com.au/links/links.htm" method="get" resolveURL="yes">
    <cfset remover = '<img
    src="http://www.ntmedic.com.au:80/links/../images/links.gif" border="0">'>
    <cfset content = replace(cfhttp.filecontent, remover, "")>
    <cfset length = len(content)>
    <cfset from = find("[", content)>
    <cfset amount = length - from>
    <cfset finalOutput = removechars(content, from, amount)>
    <cfoutput>#finalOutput#</cfoutput>

    please note, had to remove the links banner as it showed on the ntmedic site
    as it didnt quite fit in on the healthwork one.

    Cheers,
    Aegis

    A3gis 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