Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Bus error on https get request

Reply
Thread Tools

Bus error on https get request

 
 
fi.masini@gmail.com
Guest
Posts: n/a
 
      03-20-2006
I have this script:

---------------------------------------------------

use strict;
use utf8;
use encoding 'utf-8';
use Encode qw(encode);
use LWP::UserAgent;
use Getopt::Long;
use URI::Escape;
use HTML::Form;
use Crypt::SSLeay;
use Net::HTTPS;


.......

sub tim_login
{
# Effettua il login, preoccupandosi di verificare se questo Ë
# avvenuto con successo o meno. In caso affermativo, ritorna l'oggetto
# LWP::UserAgent creato.

my ($user, $pass) = @_;
my $res;
$ua = LWP::UserAgent->new();
$ua->cookie_jar({ file => $cookie_file });
$ua->agent($agent);

$res = $ua->get('http://www.tim.it/');
#print $res->content;
my @form = HTML::Form->parse($res);

{
local $^W = 0;
$form[1]->value('login','3335008041');
$form[1]->value('password', '12345678');
}


$res = $ua->request($form[1]->click);
#https://www.tim.it/yacasWeb/mac/login.do

if ( $res->is_success )
{
return $ua
if ($res->content =~ /timn_post_autenticazione/);

print "Impossibile autenticarsi\n";
print "\n". $res->content
if $verbose;
exit($failure);
}

connect_error();

}

-------------------------------------------------------------------------------------

the form that i have to click send post-data at a https address
and when the script perform the "click" it send an error and the
program crash.

The error is "Bus error"

pluto-5:~ fee$ ./timsms.pl -d 384756855 -t "bye"
Bus error

Could Anyone help me?

Thanx

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Style Request for Testbench with Bus Interfaces M. Norton VHDL 9 03-30-2011 10:10 PM
HTTPS GET request. Jon Python 0 12-14-2007 09:04 PM
Address Bus and External Data Bus Confusion LoXodonte A+ Certification 1 04-18-2006 09:09 PM
Help request: Mystery frame below status bar [Xandros Bus 2/Firefox 1.0] K7AAY Firefox 1 03-29-2005 02:04 PM
bus error / crash using https Adam Python 0 06-17-2004 05:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57