Hello All,

I looks like I found the reason of this bug.
Simple call "path" instead of "epath" in Cookies.pm
At least it fixed my own problem.

Regards -
Serguei

diff -c Cookies.old.pm  Cookies.pm
*** Cookies.old.pm Thu May  4 17:08:44 20:0
--- Cookies.pm Thu May  4 17:08:54 20:0
***************
*** 107,113 ****
      my $domain = $url->host;
      $domain = "$domain.local" unless $domain =~ /\./;
      my $secure_request = ($url->scheme eq "https");
!     my $req_path = $url->epath;
      my $req_port = $url->port;
      my $now = time();
      $self->_normalize_path($req_path) if $req_path =~ /%/;
--- 107,113 ----
      my $domain = $url->host;
      $domain = "$domain.local" unless $domain =~ /\./;
      my $secure_request = ($url->scheme eq "https");
!     my $req_path = $url->path;
      my $req_port = $url->port;
      my $now = time();
      $self->_normalize_path($req_path) if $req_path =~ /%/;




-----Original Message-----
From: Serguei Khomiouk <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, March 17, 2000 11:54 PM
Subject: Problem using cookies in lwp-request with https scheme in URL


>Hello all
>
>Quick form of my question is: I need "switch on" cookies support in
>lwp-request with https scheme of URL. Is there common way to do it?
>I can write cookie support for my own case but lwp-request looks very
>convenient and is exactly what I need except "cookies with https"...
>
>I tried to add something like (from lwpcook book)
>
>        my $JARFILENAME = "/tmp/cookie.jar";
>        my $cookies = HTTP::Cookies->new(File => $JARFILENAME, AutoSave =>
>1);
>        $self->cookie_jar($cookies);
>
>to "sub new" in package RequestAgent (file lwp-request) but unsuccessfully
>because of the error:
>
>Can't locate object method "epath" via package "URI::https" at
>/perl/site/lib/HTTP/Cookies.pm line 110.
>
>Really this request results in sequence of redirections to various
>https-URLs on the same host and finally they asks me authorization. If it's
>Ok they set cookies and... well all Ok if I send them this cookies header.
>
>Any tips will be greatly appreciated
>
>Serguei
>
>

Reply via email to