[thelist] help

Tinsley Lockhart tinsley at inform.org.uk
Wed Dec 6 12:54:30 CST 2000


please unsubscriabe me; I get duplicate copies of this, and the staff member
who subscribed is gone now anyway.

thelist-admin at lists.evolt.org wrote:

> Send thelist mailing list submissions to
>         thelist at lists.evolt.org
>
> To subscribe or unsubscribe via the web, visit
>         http://lists.evolt.org/mailman/listinfo/thelist
> or, via email, send a message with subject or body 'help' to
>         thelist-request at lists.evolt.org
> You can reach the person managing the list at
>         thelist-admin at lists.evolt.org
>
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of thelist digest..."
>
>   ------------------------------------------------------------------------
> Today's Topics:
>
>   1. https through a proxy with Perl (phammar at dplanet.ch)
>   2. Re: php variables in mysql output (Liz Lawson)
>   3. TVi (Richard Hilson)
>
>   ------------------------------------------------------------------------
>
> Subject: [thelist] https through a proxy with Perl
> Date: Wed, 6 Dec 2000 18:30:18 +0100
> From: phammar at dplanet.ch
> Reply-To: thelist at lists.evolt.org
> To: thelist at lists.evolt.org
>
> Hi,
>
> A colleage has the following problem:
>
> He's trying to access information from
> a server using https through a proxy,
> but the proxy returns the following :
>
>         HTTP/1.0 200 OK
>         Content-Type: text/html
>         Client-Date: Wed, 06 Dec 2000 17:00:37 GMT
>         Client-Peer: 10.0.253.2:80
>         Refresh: 0; URL=https://your.server.com/
>
>         <HTML></HTML>
>
> So my question is:
> How do I get the page itself and not the refresh information ?
>
> Here's the script (adapted from the ActivePerl doc):
>
> use LWP::UserAgent;
> my $header = new HTTP::Headers;
> $header->authorization_basic("uName", "pWord");
> $header->user_agent("Mozilla/3.0");
> $header->header("Accept" => "text/plain");
> $uagent = new LWP::UserAgent;
> $uagent->proxy(['https', 'ftp'] => 'http://proxy:80');
>
> $wheretogo = "https://your.server.net/";
> $req = new HTTP::Request ("GET" => $wheretogo, $header, "");
> $req->proxy_authorization_basic("", "");
>
> $result = $uagent->request($req);
> print $result->as_string;
>
> Any suggestions in Perl or ASP would be
> warmly accepted. (the server runs NT)
>
> TIA, Peter
>
>   ------------------------------------------------------------------------
>
> Subject: Re: [thelist] php variables in mysql output
> Date: Wed, 6 Dec 2000 17:30:47 -0000
> From: "Liz Lawson" <lizlawson at charitycards.co.uk>
> Reply-To: thelist at lists.evolt.org
> To: <jay at trans-city.com>, <thelist at lists.evolt.org>
>
> Thanks Jay.
>
> eval() was the thing, although it took a bit of fiddling to get it to put
> the parsed html into a variable rather than just it straight to the
> browser...I'm doing this now (it's PHP4 only)
>
> $var = stuff from db;
>
> $var = "return \"$var\";";
> $var = eval($var);
>
> If it's not a good idea i'm happy to be educated...
>
> thanks for your help
>
> Liz
>
> -----Original Message-----
> From: Jay Greenspan <jay at trans-city.com>
> To: lizlawson at charitycards.co.uk <lizlawson at charitycards.co.uk>
> Date: 06 December 2000 15:37
> Subject: Re: [thelist] php variables in mysql output
>
> don't know if someone replied to this yet...
>
> If I read your question right, I think the eval()
> function will do what you need...
>
>   ------------------------------------------------------------------------
>
> Subject: [thelist] TVi
> Date: Wed, 6 Dec 2000 18:02:21 -0000
> From: Richard Hilson <richard.hilson at fisystem.com>
> Reply-To: thelist at lists.evolt.org
> To: "'thelist at lists.evolt.org'" <thelist at lists.evolt.org>
>
> Anyone heard of a TV Internet platform called qzero?
>
>   ------------------------------------------------------------------------
> _______________________________________________
> Help: http://lists.evolt.org/mailman/listinfo/thelist
>
> Archives: http://lists.evolt.org





More information about the thelist mailing list