[Bug 602703] Review Request: perl-HTTP-Parser - Parse HTTP/1.1 request into HTTP::Request/Response object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=602703

--- Comment #6 from Petr Pisar <ppisar@xxxxxxxxxx> 2010-06-15 07:28:38 EDT ---
Ok, the full working example is:


use HTTP::Parser;

my $parser = HTTP::Parser->new();
my @lines = ('GET / HTTP/1.1','Host: localhost','Connection: close','','');

my $result;
foreach my $line (@lines) {
  $result = $parser->add("$line\x0d\x0a");
  print "passing '$line' got '$result'\n";
}
print $parser->object->as_string();


There was missing `object' method call. Run `perldoc HTTP::Parser' for more
details. The example seems be written from scratch without testing.

I will correct it in distribution package not to mislead Fedora users.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review


[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]