in reply to Redirection doesn't work?

The redirection from the "middle" page is probably done via a meta tag. If the URL never changes, then wait a bit on your own and request it. If the URL does change, you'll probably need to parse it out of the "middle" page's source.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re^2: Redirection doesn't work?
by EllenWS (Initiate) on Sep 27, 2005 at 10:52 UTC
    Thx!

    I just check the source code, the "middle" page is done via a meta tag. So, dose it mean that the "middle" page can't be redirected automatically?

    I tried to use  timeout to extend the exceuting time, but the request stopped before times up(or before finish the search so give me a "middle" page). Does it due to meta tag?

    The final page has a different URL than the "middle" page. The only way to fetch the result page is parse out of the "middle" page,right? Any other methods??
      So, dose it mean that the "middle" page can't be redirected automatically?

      It probably means that you will have to write to write the code to automate it. (Of course, someone could still pop up and say, "no, wait; there's a module for that on CPAN." I don't know of one though.)

      The final page has a different URL than the "middle" page. The only way to fetch the result page is parse out of the "middle" page,right? Any other methods??

      If the URL of the final page is subject to change and the only place to get it is from the "middle" page, then yes, you'll have to parse it out. But at least it shouldn't be particularly hard to do. You might want to be sure the URL actually does change before going to the trouble though. If it is the same across requests, then there's probably no need for you to look at the middle page at all.

      -sauoq
      "My two cents aren't worth a dime.";