Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::httpserver::request(3pm) [debian man page]

Net::HTTPServer::Request(3pm)				User Contributed Perl Documentation			     Net::HTTPServer::Request(3pm)

NAME
Net::HTTPServer::Request - HTTP request SYNOPSIS
Net::HTTPServer::Request handles the parsing of a request. DESCRIPTION
Net::HTTPServer::Request takes a full request, parses it, and then provides a nice OOP interface to pulling out the information you want from a request. METHODS
Cookie([cookie]) Returns a hash reference of cookie/value pairs. If you specify a cookie, then it returns the value for that cookie, or undef if it does not exist. Env([var]) Returns a hash reference of variable/value pairs. If you specify a variable, then it returns the value for that variable, or undef if it does not exist. Header([header]) Returns a hash reference of header/value pairs. If you specify a header, then it returns the value for that header, or undef if it does not exist. Method() Returns the method of the request (GET,POST,etc...) Path() Returns the path portion of the URL. Does not include any query strings. Procotol() Returns the name and revision that the request came in with. Query() Returns the query portion of the URL (if any). You can combine the Path and the Query with a ? to get the real URL that the client requested. Request() Returns the entire request as a string. Response() Returns a Net::HTTPServer::Response object with various bits prefilled in. If you have created session via the Session() method, then the session will already be registered with the response. Session() Create a new Net::HTTPServer::Session object. If the cookie value is set, then the previous state values are loaded, otherwise a new session is started. URL() Returns the URL of the request. AUTHOR
Ryan Eatmon COPYRIGHT
Copyright (c) 2003-2005 Ryan Eatmon <reatmon@mail.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-03-03 Net::HTTPServer::Request(3pm)

Check Out this Related Man Page

Net::LDAP::Control::SyncRequest(3pm)			User Contributed Perl Documentation		      Net::LDAP::Control::SyncRequest(3pm)

NAME
Net::LDAP::Control::SyncRequest - LDAPv3 Sync Request control object SYNOPSIS
use Net::LDAP; use Net::LDAP::Control::SyncRequest; use Net::LDAP::Constant qw( LDAP_SYNC_REFRESH_ONLY LDAP_SYNC_REFRESH_AND_PERSIST LDAP_SUCCESS ); $ldap = Net::LDAP->new( "ldap.mydomain.eg" ); $req = Net::LDAP::Control::SyncRequest->new( mode => LDAP_SYNC_REFRESH_ONLY ); my $mesg = $ldap->search(base=> 'dc=mydomain,dc='eg', scope => 'sub', control => [ $req ], callback => &searchCallback, # call for each entry filter => "(objectClass=*)", attrs => [ '*']); sub searchCallback { my $message = shift; my $entry = shift; my @controls = $message->control; if($controls[0]->isa('Net::LDAP::Control::SyncState')) { print "Received Sync State Control "; print $entry->dn()." "; print 'State: '.$controls[0]->state." ".', entryUUID: '.$controls[0]->entryUUID.', cookie: '.$controls[0]->cookie; } elsif($controls[0]->isa('Net::LDAP::Control::SyncDone')) { print "Received Sync Done Control "; print 'Cookie: '.$controls[0]->cookie.', refreshDeletes: '.$controls[0]->refreshDeletes; } } DESCRIPTION
"Net::LDAP::Control::SyncRequest" provides an interface for the creation and manipulation of objects that represent the "Sync Request Control" as described by RFC 4533. CONSTRUCTOR ARGUMENTS
In addition to the constructor arguments described in Net::LDAP::Control the following are provided. mode cookie reloadHint METHODS
As with Net::LDAP::Control each constructor argument described above is also available as a method on the object which will return the current value for the attribute if called without an argument, and set a new value for the attribute if called with an argument. SEE ALSO
Net::LDAP, Net::LDAP::Control, Net::LDAP::Control::SyncState, Net::LDAP::Control::SyncDone, http://www.ietf.org/rfc/rfc4533.txt AUTHOR
Mathieu Parent <math.parent@gmail.com> Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org> COPYRIGHT
Copyright (c) 2008 Mathieu Parent. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-29 Net::LDAP::Control::SyncRequest(3pm)
Man Page