TonyJix
asked on
LWP and Redirect (for example: MOVE)
Hi,
When you sometimes get a page with LWP, it displays a MOVE message,
meaning that the page has been moved. Is it possible for LWP to then get the page on the new address?
i.e: Read and handle 301.
Greeting.
When you sometimes get a page with LWP, it displays a MOVE message,
meaning that the page has been moved. Is it possible for LWP to then get the page on the new address?
i.e: Read and handle 301.
Greeting.
It depends on whether the server provides that information in some manner. You could check LWP for a 301 error, and branch based on whether it's true or not. You could then process the page that was returned, looking for the new address. But, this address might or might not be there, depending on how the server is configured and on what the admin has decided to send on connect to the old address. Moreover, if the re-direct page does provide the new address, it could be anywhere on the page, and is not garunteed to be the only URL on the page...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.