Re: Perl - approach to query https website for code & parsing xml response
- From: zakame@xxxxxxxxxx (Zak B. Elep)
- Date: Fri, 25 Jul 2008 00:28:08 +0800
deep <deepalicanada@xxxxxxxxx> writes:
I tried that but got same results. I used following:
my $ua = new LWP::UserAgent;
my $res = $ua->post ($url);
print $res->as_string;
print "\nResult - $res->content";
print "\n Error - $res->status_line";
Here's my attempt against a live site (sourceforge), it works:
alteran:~ zakame$ perl -de 0 -MLWP::UserAgent
Loading DB routines from perl5db.pl version 1.28
Editor support available.
,----[ perl -de 0 -MLWP::UserAgent ]
| Enter h or `h h' for help, or `man perldebug' for more help.
|
| main::(-e:1): 0
| DB<1> $ua = LWP::UserAgent->new()
|
| DB<2> $url = 'https://sourceforge.net/forum/forum.php'
|
| DB<3> $res = $ua->post( $url, forum_id => '849067' )
|
| DB<4> x $res->as_string()
| 0 "HTTP/1.1 200 OK\cJConnection: close..."
|
| DB<5> x $res->status_line()
| 0 '200 OK'
`----
--
I like the idea of 256 bits, though: 32 for the (Unicode) character leaves
room for 224 Bucky bits, which ought to be enough for anyone.
-- Roland Hutchinson, in alt.folklore.computers
.
- References:
- Perl - approach to query https website for code & parsing xml response
- From: deepalicanada
- Re: Perl - approach to query https website for code & parsing xml response
- From: Zak B. Elep
- Re: Perl - approach to query https website for code & parsing xml response
- From: deep
- Re: Perl - approach to query https website for code & parsing xml response
- From: Zak B. Elep
- Re: Perl - approach to query https website for code & parsing xml response
- From: deep
- Perl - approach to query https website for code & parsing xml response
- Prev by Date: Re: FAQ 4.2 Why is int() broken?
- Next by Date: Re: Perl - approach to query https website for code & parsing xml response
- Previous by thread: Re: Perl - approach to query https website for code & parsing xml response
- Next by thread: Re: Perl - approach to query https website for code & parsing xml response
- Index(es):
Relevant Pages
|