Ulrich Wisser [EMAIL PROTECTED] writes:
today I got an error code 400 (bad request) from my url checker. When
I tested the url in my browser it worked fine. The url is
http://www.leomajken.se?source=digdev
I realize that there is a / missing after the domain name. I don't
know if
ALexander N. Treyner [EMAIL PROTECTED] writes:
Could somebody help me to figure out what's wrong?
It means that your machine can't talk to itself, probably because the
hostname of your machine does not resolve to itself. If you are on
a Unix system, then ping `hostname` needs to work.
--Gisle
should it's name be?
(ie., Cparase?)
What does 'parase' mean?
Regards,
Gisle
or replicated in both HTTP::Request and HTTP::Response.
Regards,
Gisle
parts_DFS that return
all parts in a depth-first-search order. I don't see a need for it
for HTTP::Message, and it can easily be constructed from the parts()
method.
Regards,
Gisle
attribute in the Cookie still refers to .yahoo.com.
Can you provide a trace of sequence of request/responses that are
exchanged and the content of the cookie_jar as this happens.
Regards,
Gisle
.
--Gisle
outself.
Regards,
Gisle
1.23 2003/10/24 11:13:03 gisle Exp $
+# $Id: RobotUA.pm,v 1.24 2004/04/06 11:02:50 gisle Exp $
require LWP::UserAgent;
@ISA = qw(LWP::UserAgent);
-$VERSION = sprintf(%d.%02d, q$Revision: 1.23 $ =~ /(\d+)\.(\d+)/);
+$VERSION = sprintf(%d.%02d, q$Revision: 1.24 $ =~ /(\d+)\.(\d+)/);
require WWW
the last line above with
$name =~ s!/.*!!; # lose version
which seems to cover the various cases correctly.
Agree. Patch applied. Thanks!
Regards,
Gisle
--- WWW/RobotRules.pm.orig2003-10-23 15:11:33.0 -0400
+++ WWW/RobotRules.pm 2004-04-03 18:06:01.0 -0500
be a bit
more liberal when parsing. I've now applied the following patch.
Regads,
Gisle
Index: lib/LWP/RobotUA.pm
===
RCS file: /cvsroot/libwww-perl/lwp5/lib/LWP/RobotUA.pm,v
retrieving revision 1.24
diff -u -p -r1.24 RobotUA.pm
.
In the mindset of 'Be liberal in what you receive, and conservative in what
you send', is this worth adding to libwww-perl?
It sure is. Now applied. Thanks!
Regards,
Gisle
Thanks,
Ward Vandewege.
--- Simple.pm 2003-12-31 14:15:59.0 -0500
+++ Simple.pm 2003-12-31 14:16
Jamie Lokier [EMAIL PROTECTED] writes:
Gisle Aas wrote:
The subroutine Net::HTTP::Methods::write_request calls print, but
doesn't check the return value.
It's a non-blocking socket, so it's quite normal for the print to do a
short write if the string is very large -- larger than
of [NO METHOD] and [NO URI].
We don't want values with spaces in them, because it makes it
harder to parse.
Enjoy!
Regards,
Gisle
Scott R. Godin [EMAIL PROTECTED] writes:
It seems to require Data::Dump which I do not have installed.
libwww-perl-5.78 has been uploaded. It fixes this problem.
Regards,
Gisle
Gisle Aas [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (François Pons) writes:
Gisle Aas [EMAIL PROTECTED] writes:
I've been going through the backlog in my LWP folder today and managed
to apply some of the patches found there. I now have to return to my
real work, but I still
---BeginMessage---
Apologies if this is not an appropriate place to report issues
with libwww - if which case if you could let me know a better
address I'd be very grateful.
I've noticed at least one case where $response-base does not
match what would be
',
content_type = 'form-data',
content = [
foo = 1,
file = [foo.txt],
]);
More details available by reading the HTTP::Request::Common manpage.
Regards,
Gisle
with a newline. This ensures better compatibility with
5.76 and older versions of libwww-perl.
Use case insensitive lookup of hostname in $ua-credentials.
Patch by Andrew Pimlott [EMAIL PROTECTED].
Enjoy!
Regards,
Gisle
::Protocol::http module that for instance pick up the IP address
from a request header.
Or you can try this:
local @LWP::Protocol::http::EXTRA_SOCK_OPTS =
(PeerAddr = 10.2.1.7);
print $ua-get(http://www.example.com/foo;);
Regards,
Gisle
properly.
Regards,
Gisle
HTML-Parser.
Regards,
Gisle
think happens here?
Regards,
Gisle Aas
. The 'name'
from the option tag overrides the 'name' from the select tag when it
should not. We also get in trouble with (illegal) option attributes
like 'disabled', 'multiple', 'type' etc.
The following patch fixes these problems. It will be in the next
libwww-perl.
Regards,
Gisle
Index
Ville Skyttä [EMAIL PROTECTED] writes:
URI::sip(s) does not honor the URI API contract of returning the
original URI if it cannot be made absolute in new_abs() or abs(), or
relative in rel(). Fix along with a couple of test cases attached.
Applied. Thanks!
Regards,
Gisle
files
$content = $fh;
close($fh);
- $h-header(Content-Length = length($content));
}
unless ($ct) {
require LWP::MediaTypes;
Regards,
Gisle
if $res-have_many_parts;
Regards,
Gisle
always add a method for that purpose. If I redid this now I
think I would make 'parts' return the number and then add a 'part'
method (without the 's') that always returns the first part regardless
of context.
Regards,
Gisle
ended up with. It is likely to be part of the
next LWP release.
Regards,
Gisle
Index: lib/HTTP/Message.pm
===
RCS file: /cvsroot/libwww-perl/lwp5/lib/HTTP/Message.pm,v
retrieving revision 1.42
diff -u -p -r1.42 Message.pm
--- lib/HTTP
, this is how --full-time comes out here (Redhat 9). It does
not appear to be the same format you try to parse.
[EMAIL PROTECTED] lwp5]$ ls -l --full-time
total 368
-rw-rw-r--1 gislegisle3800 2004-04-07 12:44:47.0 +0200 AUTHORS
drwxrwxr-x3 gislegisle4096 2004-06
, but
libwww-perl-5.71 (2003-10-14) had this fix:
lwp-request now prints unsuccessful responses in the same way
as successsful ones. The status will still indicate failures.
Based on a patch by Steve Hay [EMAIL PROTECTED].
Didn't that address this concern?
Regards,
Gisle
Background
:'.
Enjoy!
Regards,
Gisle
problem at your site. Are the machine
you're testing from properly connected to the Internet? Do you have
to go through some proxy?
Regards,
Gisle
perl -Ilib t/live/jigsaw-md5.t
--Gisle
[EMAIL PROTECTED] writes:
How about this for the next version of URI:
URI-new(%68ttp://www.example.com/)-canonical eq http://www.example.com/;
Why? This appears just wrong. RFC 2396 does not allow escapes in the
scheme part. Is this used out in the wild?
Regards,
Gisle
::Protocol::http::EXTRA_SOCK_OPTS. What is your suggested
change to support this?
Regards,
Gisle
Jeff 'japhy' Pinyan [EMAIL PROTECTED] writes:
On Jul 13, Gisle Aas said:
Jeff 'japhy' Pinyan [EMAIL PROTECTED] writes:
I'm going to release these subclasses, but I'd like to know if the libwww
suite can perhaps be rewritten in the future to allow for this type of
thing
at this
point.
+ }
elsif ($tag eq textarea) {
$attr-{textarea_value} = $attr-{value}
if exists $attr-{value};
Regards,
Gisle
be used to let HTTP::Request
|objects pick up content data from some scalar variable without
|having to copy it.
Regards,
Gisle
.
Regards,
Gisle Aas,
ActiveState
that.
--Gisle
a
potentially problematic situation.
How? If you strip all script text there should not be a problem.
Regards,
Gisle
Demo of the problem is below.
Thank you for looking!
-Ashley
use HTML::TokeParser;
use Data::Dumper;
$Data::Dumper::Terse = 1;
my $text = join '', DATA;
my $p = HTML
only testing
for the existence of the file and the network connection between the
two boxen?
The HEAD might be cheaper, but not all servers implement it for all
resources.
Regards,
Gisle
:///foo
works with it as expected.
Do you have other examples?
Would it be possible to have this fixed in URI?
Sure. Especially if I'm told about more apps that can't inter operate
with authority-less-file-URIs. I might want to make it an option.
Regards,
Gisle
Bjoern Hoehrmann [EMAIL PROTECTED] writes:
Unhandled Exception: System.UriFormatException: Invalid URI:
The format of the URI could not be determined.
Ok. URI-1.32 has just been uploaded and it revise how we map filenames
to file URIs. Some examples with the new module:
$ perl
, with $ua-cookie_jar({}), and LWP will
manage the cookies for you.
Regards,
Gisle
call $au-conn_cache-drop;
Regards,
Gisle
allows whitespace, but needs
to be tought that BOM is harmless too. Look at the 'text' method.
Do you want to try to provide a patch?
Regards,
Gisle
recommend something newer.
Regards,
Gisle
Craig Cummings [EMAIL PROTECTED] writes:
I'm trying to install Bundle::LWP on my Debian Linux system.
Interesting. What does these commands print on your system:
perl -le 'print scalar gmtime(0)'
perl -le 'print scalar gmtime(760233600)'
perl -le 'print scalar gmtime(3915993600)'
Andy Lester [EMAIL PROTECTED] writes:
Gisle, can we put some kind of mention of WWW::Mechanize in
LWP::UserAgent? Plenty of people know about LWP, but want to do the
rest of the stuff that Mech does. See this as an example:
http://www.perlmonks.org/?node_id=405988
The LWP::UserAgent
Thibaut Britz [EMAIL PROTECTED] writes:
the following produces a segfault using the latest version of libwww.
I see segfaults with ActivePerl 810 but not with our latests builds.
What version of perl are you using? The segfault appears to be a bug
in perl I would like to find out if the
The following patch should make sure that HTML::Parser does not
produce badly encoded SVs. That avoid the problem demonstrated, but I
still need to track down why perl itself segfaulted because of this.
Regards,
Gisle
Index: util.c
Gisle Aas [EMAIL PROTECTED] writes:
The following patch should make sure that HTML::Parser does not
produce badly encoded SVs. That avoid the problem demonstrated, but I
still need to track down why perl itself segfaulted because of this.
Perl crashed because the regexp engine did deal
/hypertext/WWW/MarkUp/Tags.html#7
It results in weird effects for me as I write a HTML sanitizer for
WebMail.
Howcome? Do you have a need to suppress this behaviour in HTML::Parser?
Regards,
Gisle
Alex Kapranoff [EMAIL PROTECTED] writes:
* Alex Kapranoff [EMAIL PROTECTED] [November 11 2004, 11:11]:
It results in weird effects for me as I write a HTML sanitizer for
WebMail.
Howcome? Do you have a need to suppress this behaviour in HTML::Parser?
Yes, I'd like to have an
. Will be in 5.801.
Regards,
Gisle
Index: lib/WWW/RobotRules.pm
===
RCS file: /cvsroot/libwww-perl/lwp5/lib/WWW/RobotRules.pm,v
retrieving revision 1.30
diff -a -u -r1.30 RobotRules.pm
--- lib/WWW/RobotRules.pm 9 Apr 2004 15:09:14
-r1.31 -r1.32
--- lib/WWW/RobotRules.pm 12 Nov 2004 16:05:09 - 1.31
+++ lib/WWW/RobotRules.pm 12 Nov 2004 16:14:25 - 1.32
@@ -1,8 +1,8 @@
package WWW::RobotRules;
-# $Id: RobotRules.pm,v 1.31 2004/11/12 16:05:09 gisle Exp $
+# $Id: RobotRules.pm,v 1.32 2004/11/12 16:14:25
[EMAIL PROTECTED] writes:
If you spider several sites and one of them has a broken robots.txt file you
can't tell which one since the warning doesn't tell you.
This will be better in 5.801. I've applied a variation of Bill
Moseley's suggested patch for the same problem.
Around line 73 of
applied. Thanks!
Regards,
Gisle
--- /usr/lib/perl5/vendor_perl/5.8.4/LWP/Protocol/file.old2004-09-19
22:56:35.786858776 +0300
+++ /usr/lib/perl5/vendor_perl/5.8.4/LWP/Protocol/file.pm 2004-09-19
22:56:24.0 +0300
@@ -96,14 +96,13 @@
closedir(D);
# Make
revision 2.99
diff -u -p -u -r2.98 -r2.99
--- hparser.c 11 Nov 2004 10:12:51 - 2.98
+++ hparser.c 15 Nov 2004 22:19:49 - 2.99
@@ -1,4 +1,4 @@
-/* $Id: hparser.c,v 2.98 2004/11/11 10:12:51 gisle Exp $
+/* $Id: hparser.c,v 2.99 2004/11/15 22:19:49 gisle Exp $
*
* Copyright
by Ville Skyttä [EMAIL PROTECTED].
Enjoy!
Regards,
Gisle
-terminated title elements this
might not be such a good idea, so this change might not stay.
Please try it out to see if you find problems with it.
Regards,
Gisle
Brian Cassidy [EMAIL PROTECTED] writes:
I was testing an app at the command line which does some query and URL
manipulation. At one point, I pass the URL as generated from CGI.pm, which
happens to use a semi-colon (rather than an ampersand) as the query
parameter separator. Once I tried to
with it's own
bugs and limitations. You can force always using the full LWP client
implementaion by importing $ua from LWP::Simple.
Regards,
Gisle
HTML-Parser-3.41 is available from CPAN. The major news is that
HTML::Parser should now do the right thing with Unicode strings and
that the compile time option to enable Unicode entities is gone.
There is a new 'utf8_mode' that allow saner parsing of raw undecoded
UTF-8. The Unicode support is
libwww-perl-5.802 is available from CPAN. The changes since 5.801 are:
The HTTP::Message object now have a decoded_content() method.
This will return the content after any Content-Encodings and
charsets has been decoded.
Compress::Zlib is now a prerequisite module.
Gisle Aas [EMAIL PROTECTED] writes:
The HTTP::Message object now have a decoded_content() method.
This will return the content after any Content-Encodings and
charsets has been decoded.
The current $mess-decoded_content implementation is quite naïve in
it's mapping of charsets
Zed Lopez [EMAIL PROTECTED] writes:
On 01 Dec 2004 01:35:13 -0800, Gisle Aas [EMAIL PROTECTED] wrote:
Zed Lopez [EMAIL PROTECTED] writes:
I'd like to suggest these differences be documented.
I agree this is wrong. Do you want to suggest a doc patch?
I'm working on the doc patch
Reed Russell - rreed [EMAIL PROTECTED] writes:
The sv_catpvn_utf8_upgrade macro used in hparser.c in versions 3.40 and 3.41
of HTML::Parser doesn't seem to exist in Perl 5.8.0. Can the macro be
replaced, so that the module is compatible with this version of Perl?
Sure. Applied. I've
Harald Joerg [EMAIL PROTECTED] writes:
HTTP::Response::clone doesn't clone the protocol either.
This, however, can be fixed easily:
Thanks. Applied this patch to HTTP::Message so that also Requests
clone their protocol attribute.
--- Response.pm.1.502004-12-02 21:36:42.43750 +0100
patches for all the fallbacks and workarounds -
That would be very much appreciated.
Regards,
Gisle
Dan Kubb [EMAIL PROTECTED] writes:
label
input type=radio name=r1 value=1One
/label
Is label in common use? What browsers support it?
Regards,
Gisle
Bjoern Hoehrmann [EMAIL PROTECTED] writes:
HTML::Parser 3.41/3.42 fails on some tests on MSWin32, see
This should be fixed in 3.43 that I just uploaded. The SvUTF8 flag
was not propagated correctly when replacing unterminated entities.
Regards,
Gisle
.
Regards,
Gisle
?
The cpan:modules/02packages.details.txt.gz index points to URI-1.35 as
it should.
Regards,
Gisle
);
This will turn on the 211 and 213 check box and all the other
cat[] checkboxes off.
Regards,
Gisle
Moshe Kaminsky [EMAIL PROTECTED] writes:
* Gisle Aas [EMAIL PROTECTED] [01/12/04 12:02]:
libwww-perl-5.802 is available from CPAN. The changes since 5.801 are:
The HTTP::Message object now have a decoded_content() method.
This will return the content after any Content-Encodings
a side effect on the message
when given an option.
Regards,
Gisle
Index: lib/HTTP/Message.pm
===
RCS file: /cvsroot/libwww-perl/lwp5/lib/HTTP/Message.pm,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -p -r1.54 -r1.55
Radoslaw Zielinski [EMAIL PROTECTED] writes:
The attached patch allows specifying a directory as lwp-download's
second argument. Also makes 0 valid destination file name.
Thanks. Applied.
Regards,
Gisle
of the libwww bundle?
I don't have a problem with that if its author wants the same.
Regards,
Gisle
--- libwww-perl-5.802/lib/HTTP/Daemon.pm 2004-04-09 13:21:43.0
-0700
+++ libwww-perl-5.802-kees/lib/HTTP/Daemon.pm 2004-12-10 10:13:30.0
-0800
@@ -37,10 +37,22
into this one before I applied it.
Thanks!
Regards,
Gisle
Index: lib/HTTP/Response.pm
===
RCS file: /cvsroot/libwww-perl/lwp5/lib/HTTP/Response.pm,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -p -r1.50 -r1.51
--- lib/HTTP
Harald Joerg [EMAIL PROTECTED] writes:
Gisle Aas writes:
Harald Joerg [EMAIL PROTECTED] writes:
As a fallback, HTTP::Response::parse could set the protocol to undef
if it turns out to be a three-digit number, assigning this value to
the code (after assigning to the message what
is $content_ref in this case?
Regards,
Gisle
Gisle Aas [EMAIL PROTECTED] writes:
No this is supposed to work.
I've now verified that using request code content like this, does
indeed work for me when posting to my own server.
Unless you can debug this problem directly with your app, please try
to create a complete (short) example program
Dan Kubb [EMAIL PROTECTED] writes:
Hi Gisle,
Are there other form elements than input that might take labels?
Yes, all the normal form elements can take labels. I'm
just not sure how you would use them without adding to
or changing the interface in HTML::Form.
For input tags
,
Gisle
. This made it assume large parts of the
document to be the script element.
This buggy behaviour was introduced in v3.40 (v3.39_91). The
following patch fixes this problem and will be present in v3.44 when
ready. I expect that to happen soonish.
Regards,
Gisle
Index: hparser.c
-content. The decoded_content method was introduced in
LWP-5.802.
Regards,
Gisle
, then the Data::Dump reference should clearly go.
Regards,
Gisle
= $self-SUPER::syswrite(@_);
$bytes_out += $n if defined($n) $n 0;
return $n;
}
__END__
Regards,
Gisle
::RobotUA that I can set so it would not be
put to sleep.
There is the 'use_sleep' attribute that you might set to a FALSE value.
Regards,
Gisle
2005 12:37:25 GMT
Server: Netscape-Enterprise/6.0
Set-Cookie: FGNCLIID=42b0olsqf5khpzen020dycwtbh27;expires=Thu, 18 Jan 2007
12:37:26 GMT;path=/
Connection: Close
--Gisle
Gisle Aas [EMAIL PROTECTED] writes:
James Turnbull [EMAIL PROTECTED] writes:
The error I get is...
Error GETing http://www.parcelforce.com:80/portal/pw/track: Internal
Server Error at track.pl line 5
The server is confused by something in the request that LWP sends.
This is a buggy
to selectively remove
some tags but leave others and entities intact.
The hstrip example does exactly this.
http://search.cpan.org/src/GAAS/HTML-Parser-3.45/eg/hstrip
Regards,
Gisle
does not do this.
Regards,
Gisle
your script has quotes around the $response-status_line
expression. The program above does not produce the output you claim.
Regards,
Gisle
Norbert Kiesel [EMAIL PROTECTED] writes:
I tried to use -ignore_tags(()) and -ignore_tags(qw(none)), but it
seems that after calling -report_tags() once it alsways uses a positive
tag filter.
Calling -report_tags() without any arguments should reset the filter.
Regards,
Gisle
Brian Hirt [EMAIL PROTECTED] writes:
Any news on this? It's a pretty major bug.
I don't see anything wrong when running your test program. What
version of LWP are you using?
Regards,
Gisle
-simple_request() instead of $ua-request() to dispatch
the request.
--Gisle
401 - 500 of 650 matches
Mail list logo