Questions tagged [lwp]

The World-Wide Web library for Perl - LWP is a set of Perl modules which provides a simple and consistent application programming interface (API) to the World-Wide Web.

The main focus of the library is to provide classes and functions that allow you to write WWW clients. The library also contain modules that are of more general use and even classes that help you implement simple HTTP servers.

Most modules in this library provide an object oriented API. The user agent, requests sent and responses received from the WWW server are all represented by objects. This makes a simple and powerful interface to these services. The interface is easy to extend and customize for your own needs.

The main features of the library are:

  • Contains various reusable components (modules) that can be used separately or together.
  • Provides an object oriented model of HTTP-style communication. Within this framework we currently support access to http, https, gopher, ftp, news, file, and mailto resources.
  • Provides a full object oriented interface or a very simple procedural interface.
  • Supports the basic and digest authorization schemes.
  • Supports transparent redirect handling.
  • Supports access through proxy servers.
  • Provides parser for robots.txt files and a framework for constructing robots.
  • Supports parsing of HTML forms. Implements HTTP content negotiation algorithm that can be used both in protocol modules and in server scripts (like CGI scripts).
  • Supports HTTP cookies.
  • Some simple command line clients, for instance lwp-request and lwp-download.

More information on the CPAN website.

365 questions
-2
votes
1 answer

perl LWP POST using special characters

I am struggling with posting Perl data using LWP. Here is my code $req = POST $url, [ SESSID => $sessid, csrf => $csrf, domainid => '1234567', type => 'A', default => '0', record-type => 'A', a-record%5B%5D =>…
sb0373
  • 11
  • 2
-2
votes
2 answers

My LWP Script Not Working

I am running #!/usr/bin/perl -w use strict; use LWP::Simple;
mtrmilk
  • 49
  • 1
  • 8
-4
votes
1 answer

Send POST data in perl

login.html
login.pl #!/usr/bin/perl use LWP::UserAgent; my $username =…
-4
votes
1 answer

Why I can't build https connection with perl and LWP?

Situation: I need to login to a web site with perl script which is a https connection. Problem I faced: I was supposed get a 302 return, however I got 200 with empty tag. I guess I have some proxy issue What's my question: I tried to debug…
Wei
  • 718
  • 1
  • 6
  • 18
-4
votes
3 answers

DOWNLOAD MEDIA CONTENTS without using LWP module

can v download media contents and save it in a destination folder without using LWP module??
Ben
  • 1
  • 3
1 2 3
24
25