in reply to Re^2: Redirection with LWPUserAgent
in thread Redirection with LWPUserAgent
However there is a hidden snag in your idea: the HTTP protocol is stateless, so when the user clicks on one of the search engine's results and gets a "bad" result, you want him to redirect to another search engine with the original search request, but by that time the server (HTTP::Proxy) has all forgotten about that original search request. You will have to implement some form of session management or perhaps use a short living cookie to maintain state.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Redirection with LWPUserAgent
by kazak (Beadle) on Dec 21, 2011 at 14:40 UTC | |
by CountZero (Bishop) on Dec 22, 2011 at 14:25 UTC | |
by kazak (Beadle) on Dec 23, 2011 at 20:04 UTC |