Hi, if I try to use UserAgent method "response" third time, was my perl.exe crashed. Why? I hope somebody can help me. Wlodek Kaluza PS. Attachments: 1) some code lines 2) debug output 3) ActiveState Perl version 5.6.0 b.618 4) perl modules -------------------------------------------------------------- Part of the code: use LWP::UserAgent; use LWP::Debug qw(+); use URI::URL; use strict; use HTTP::Cookies; use LWP::UserAgent; use HTTP::Request::Common; use CGI; my $cookie = new HTTP::Cookies (ignore_discard => 1); my $ua = new LWP::UserAgent; $ua -> cookie_jar ($cookie); my $ssl_query0='http://some.domain/'; my $ssl_query1='https://other.domain:443/'; my $ssl_query = $ssl_query1; # first time: ........ my $req = HTTP::Request->new(GET => $ssl_query); my $res = $ua->request($req); # second time: ........ $req = HTTP::Request->new(GET => $ssl_query); $res = $ua->request($req); # third time: ........ $req = HTTP::Request->new(GET => $ssl_query); $res = $ua->request($req); # here crashed perl.exe and come Dr.Watson # in the really code I have: # three different ssl_query addresses :-) # really domain names and not "some.domain" # if I started the request method with http-query: # $ssl_query = $ssl_query0; # IT WAS SUCCESSFUL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -------------------------------------------------------------- The output: LWP::UserAgent::new: () LWP::UserAgent::request: () LWP::UserAgent::simple_request: GET https://aaa.bbb.ccc.de/ LWP::UserAgent::_need_proxy: Not proxied HTTP::Cookies::add_cookie_header: Checking aaa.bbb.ccc.de for cookies HTTP::Cookies::add_cookie_header: Checking .bbb.ccc.de for cookies HTTP::Cookies::add_cookie_header: Checking bbb.ccc.de for cookies HTTP::Cookies::add_cookie_header: Checking .ccc.de for cookies LWP::Protocol::http::request: () LWP::Protocol::http::request: GET / HTTP/1.0 Host: aaa.bbb.ccc.de User-Agent: libwww-perl/5.48 LWP::Protocol::http::request: reading response LWP::Protocol::http::request: HTTP/1.0 302 Moved Temporarily Date: Wed, 27 Sep 2000 16:03:04 CEST Server: Redirector Location: https://aaa.bbb.ccc.de:443/ Content-Length: 172 Content-Type: text/html LWP::Protocol::http::request: HTTP/1.0 302 Moved Temporarily LWP::Protocol::collect: read 173 bytes LWP::UserAgent::request: Simple response: Found LWP::UserAgent::request: () LWP::UserAgent::simple_request: GET https://aaa.bbb.ccc.de/ LWP::UserAgent::_need_proxy: Not proxied HTTP::Cookies::add_cookie_header: Checking aaa.bbb.ccc.de for cookies HTTP::Cookies::add_cookie_header: Checking .bbb.ccc.de for cookies HTTP::Cookies::add_cookie_header: Checking bbb.ccc.de for cookies HTTP::Cookies::add_cookie_header: Checking .ccc.de for cookies LWP::Protocol::http::request: () LWP::Protocol::http::request: GET / HTTP/1.0 Host: aaa.bbb.ccc.de User-Agent: libwww-perl/5.48 LWP::Protocol::http::request: reading response LWP::Protocol::http::request: HTTP/1.0 302 Moved Temporarily Date: Wed, 27 Sep 2000 16:03:04 CEST Server: Redirector Location: https://aaa.bbb.ccc.de:443/ Content-Length: 172 Content-Type: text/html LWP::Protocol::http::request: HTTP/1.0 302 Moved Temporarily LWP::Protocol::collect: read 173 bytes LWP::UserAgent::request: Simple response: Found LWP::UserAgent::request: () LWP::UserAgent::simple_request: GET https://aaa.bbb.ccc.de/ LWP::UserAgent::_need_proxy: Not proxied HTTP::Cookies::add_cookie_header: Checking aaa.bbb.ccc.de for cookies HTTP::Cookies::add_cookie_header: Checking .bbb.ccc.de for cookies HTTP::Cookies::add_cookie_header: Checking bbb.ccc.de for cookies HTTP::Cookies::add_cookie_header: Checking .ccc.de for cookies LWP::Protocol::http::request: () LWP::Protocol::http::request: GET / HTTP/1.0 Host: aaa.bbb.ccc.de User-Agent: libwww-perl/5.48 LWP::Protocol::http::request: reading response LWP::Protocol::http::request: HTTP/1.0 302 Moved Temporarily Date: Wed, 27 Sep 2000 16:03:04 CEST Server: Redirector Location: https://aaa.bbb.ccc.de:443/ Content-Length: 172 Content-Type: text/html LWP::Protocol::http::request: HTTP/1.0 302 Moved Temporarily -------------------------------------------------------------- I have ActiveState Perl version 5.6.0 This is perl, v5.6.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2000, Larry Wall Binary build 618 provided by ActiveState Tool Corp. http://www.ActiveState.com Built 21:03:54 Sep 13 2000 ----------------------------------------------------------------- Module list: Archive-Tar [0.072] module for manipulation of tar archives. Compress-Zlib [1.08 ] Interface to zlib compression library Convert-BER [1.31 ] Encode/decoing of ASN.1 usinf BER rules Crypt-SSLeay [0.17 ] OpenSSL and SSLeay glue that provides LWP https support DBD-ODBC [0.28 ] ODBC driver for the DBI module. DBI [1.14 ] Database independent interface for Perl Digest-MD5 [2.11 ] Perl interface to the MD5 Algorithm File-CounterFile [0.12 ] Persistent counter class Font-AFM [1.18 ] Interface to Adobe Font Metrics files GD [1.27 ] Interface to Gd Graphics Library HTML-Parser [2.23 ] SGML parser class HTML-Tree [0.51 ] HTML syntax tree builder MIME-Base64 [2.11 ] Encoding and decoding of base64 strings PPM [2.1 ] Perl Package Manager: locate, install, upgrade software packages. PerLDAP [1.4 ] Perl methods for LDAP C API calls SOAP [0.23 ] Library for Simple Object Access Protocol (SOAP) clients and servers in Perl Storable [1 ] persistency for perl data structures URI [1.09 ] Uniform Resource Identifiers (absolute and relative) XML-Element [1.07 ] Base element class for XML elements XML-Parser [2.27 ] A Perl module for parsing XML documents libnet [1.06 ] libnet is a collection of Perl modules which provides a simple and consistent programming interface (API) to the client side of various protocols used in the internet community libwin32 [0.17 ] A collection of extensions that aims to provide comprehensive access to the Windows API. libwww-perl [5.48 ] Library for WWW access in Perl perl-ldap [0.15 ] perl-ldap is a library of modules implementing an LDAP client. The aim of the perl-ldap project is to implement a very portable LDAP client in perl by relying on as little compiled code as possible.