[jonah] Fwd: Re: DNS

Julian Jares julian@jares.com.ar
Wed, 13 Feb 2002 08:52:20 -0300


If you have curl compiled in the php, you could always replace the lines
Backend.php
        $fp = fopen($channel['url'], 'rb');
        if (!is_resource($fp)) {
                        echo '<font color="red">could not fetch channel
file. Skipping.</font><br>';
                        continue;
                }
        ob_start();
        fpassthru($fp);
        $rdf = ob_get_contents();
        ob_end_clean();
With
	$ch = curl_init ("http://www.php.net/");

	curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); // This returns
the output to a var, otherwise it's STDOUT or file
      //curl_setopt ($ch, CURLOPT_FILE, $fp); // We would have used this
if we wanted to output to a file
      curl_setopt ($ch, CURLOPT_HEADER, 0); // Don't print headers (only
body)
	curl_setopt ($ch, CURLOPT_PROXY, "proxyname/var"); // This is
where the proxy goes

      $rdf=curl_exec ($ch);
      curl_close ($ch);

Hope this helps
Julian


-----Original Message-----
From: Chuck Hagenbuch [mailto:chuck@horde.org] 
Sent: Wednesday, February 13, 2002 12:10 AM
To: jonah@lists.horde.org
Subject: [jonah] Fwd: Re: DNS




----- Forwarded message from Brian Martinez <martinez_brain@hotmail.com>
-----
    Date: Tue, 12 Feb 2002 17:34:08 -0600
    From: Brian Martinez <martinez_brain@hotmail.com>
Reply-To: Brian Martinez <martinez_brain@hotmail.com>
 Subject: Re: DNS
      To: chuck@horde.org

Chuck,

Any suggestions?


>From: Chuck Hagenbuch <chuck@horde.org>
>To: Brian Martinez <martinez_brain@hotmail.com>
>Subject: Re: DNS
>Date: Tue, 12 Feb 2002 17:59:24 -0500
>
>Quoting Brian Martinez <martinez_brain@hotmail.com>:
>
> > Excellent! You were correct regarding the DNS issue.  I discussed 
> > the situation with our Network Admin and discovered that our 
> > firewall (as
>most
> > firewalls) do not allow for DNS resolution requests to pass from
>internal
> > LAN to external Internet.  Thus, the DNS resolvers on our internal 
> > LAN
>do
> > not resolve external addresses.  Additionally, the firewall doesn't
>allow
> > the use of IP addresses in place of the DNS name...which I found 
> > odd,
>but
> > true.  All DNS requests for external addresses must utilize the http
>proxy.
> > Applications such as "Slashapp", which is Slashdots news feed applet

> > is
>an
> > example.  If I configure wget to utilize the proxy should the
>application
> > start working?  I will test and let you know.
>
>Jonah doesn't use wget.
>
>-chuck
>
>--
>Charles Hagenbuch, <chuck@horde.org>
>"What was and what may be, lie, like children whose faces we cannot 
>see, in the arms of silence. All we ever have is here, now." - Ursula 
>K. Le Guin




_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


----- End forwarded message -----


-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"What was and what may be, lie, like children whose faces we cannot see,
in the arms of silence. All we ever have is here, now." - Ursula K. Le
Guin

-- 
Jonah mailing list: http://horde.org/jonah/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: jonah-unsubscribe@lists.horde.org