Sponsored Content
The Lounge What is on Your Mind? Let us stand in awe before Don Cragun Post 303031428 by bakunin on Thursday 28th of February 2019 07:27:56 AM
Old 02-28-2019
Let us stand in awe before Don Cragun

The list of major achievements is growing even longer: notice that with this post our revered lead moderator Don Cragun has crossed the 12.000-post-barrier.

Someone like me, who managed to produce roughly half of the posts in roughly double the time i can only stand in awe and wonder: has the keyboard already cooled down or is it still smoking?

Don, thank you for your knowledgeable and always hyper-exact contributions here. If nothing else i learned from you that even the smallest details matter and how much difference there is in about knowing something and really knowing it.

We all owe you.

bakunin
These 8 Users Gave Thanks to bakunin For This Post:
 

We Also Found This Discussion For You

1. Post Here to Contact Site Administrators and Moderators

Don Cragun

Hi Don I apologise, it wasn't my intention to double post. Soon after posting the original I noticed a typo in the subject so partly because I didn't want to confuse and distract from what I was seeking, but if I'm honest mostly down to my OCD, I wanted to correct it. However I couldn't see... (0 Replies)
Discussion started by: ElGato
0 Replies
Arch::LiteWeb(3pm)					User Contributed Perl Documentation					Arch::LiteWeb(3pm)

NAME
Arch::LiteWeb - simple way to access web pages SYNOPSIS
my $web = Arch::LiteWeb->new; my $content = $web->get("http://some.domain:81/some/path"); die $web->error . " while processing " . $web->request_url unless $content; my $content_type = $web->response_headers->{content_type}; DESCRIPTION
This class provides a basic and easy to use support for the client-side HTTP. It is supplied in order to avoid dependency on LWP. If such dependency is not a problem, consider to use LWP instead that provides much better support for HTTP and other protocols. METHODS
The following class methods are available: get, post, request_url, error, error_with_url, network_error, response_code, response_codestr, response_error, response_headers, response_content. get url [params ...] Execute HTTP get of the given url and return the html string or undef on network/response error. Use other methods to get the details about the error and the response. params is key-value hash, the following keys are supported: url_host - only used if url is none url_port - only used if url is none(80) url_path - only used if url is none endl - default is "1512" timeout - default is 20 seconds user_agent - default is "Arch::LiteWeb/0.1" nocache - add a no-cache header noredirect - don't follow redirect responses max_redirect_depth - default is 5 use_proxy - default is false proxy_url - proxy url ($http_proxy supported too) proxy_host - only used if proxy_url is none proxy_port - only used if proxy_url is none(80) post url input [params] Not implemented yet. request_url Actual url of the last issued request or undef. If partial redirect responses are enabled, then the result is the last (non-redirect) url. error If the last request resulted in error (i.e. get/post returned undef), then this method returns the error message, otherwise it returns undef. This is just a shortcut for network_error || response_error. error_with_url Like error, but with " while fetching request_url " text appended if non undef. network_error The network error message for the last request or undef. response_error The response error message for the last request or undef. response_code The last response code (integer) or undef. response_codestr The last response code (string) or undef. response_headers The last response headers (hashref of HTTP headers) or undef. response_content The last response content or undef. This is the same thing that the last get/post returns. BUGS
Not intended for use in mission-critical applications. AUTHORS
Mikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel). SEE ALSO
For more information, see LWP, LWP::Simple. perl v5.10.1 2005-03-25 Arch::LiteWeb(3pm)
All times are GMT -4. The time now is 06:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy