[CLUE-Tech] PHP Sessions and Cookies: Brain Cramp
Jeffery Cann
fabian at jefferycann.com
Sat Oct 12 23:48:23 MDT 2002
Matt, et al.,
Right on the header thing with telnet. It does not show the HTTP header. I
was confused between telnet and the LWP perl library (aka libwww-perl).
Sorry for the confusion - nice to see so much Saturday night hacking...
Jed - You can write yourself a little perl script (I can send you one on
Monday -- I have it at work) that will use LWP perl libraries and you can
definitely see the HTTP headers for a request. If you're are unable to wait
another day, check out the libwww home page
+ http://www.linpro.no/lwp/
and a quick tutorial
+ http://www.perl.com/pub/a/2002/08/20/perlandlwp.html
Matt - BTW, you can also telnet to an SMTP daemon (port 25?) and send email
manually, by typing in the SMTP commands. In fact, AFAIK, you can telnet to
any daemon and issue ASCII commands (if the daemon accepts them).
Jeff
On Saturday 12 October 2002 10:07 pm, Matt Gushee wrote:
> On Sat, Oct 12, 2002 at 09:42:51PM -0600, Jeffery Cann wrote:
> > Finally, when I wonder about cookies, I will telnet to my web box and do
> > a GET on the URL, so I can view the headers outside of the browser.
> >
> > $ telnet www.yourserver.com 80
> > GET /jed/login.php
>
> Whoa, now that is cool! I had no idea you could do that with Telnet.
> Certainly useful; however, I just tried it on my Web site, and the
> server returned the document at the requested URL, but no headers. Are
> there any command options or environment variables that might affect
> that?
More information about the clue-tech
mailing list