Reference: base (Perl in a Nutshell)

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: as_stringChapter 17
The LWP Library
Next: Reference: code
 

base

 $resp->base()

Returns the base URL of the response. If the response was hypertext, any links from the hypertext should be relative to the location returned by this method. LWP looks for the BASE tag in HTML and Content-Base/Content-Location HTTP headers for a base specification. If a base was not explicitly defined by the server, LWP uses the requesting URL as the base.


Previous: Reference: as_stringPerl in a NutshellNext: Reference: code
Reference: as_stringBook IndexReference: code

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.