in reply to Re^3: Submitting queries to server
in thread Submitting queries to server

The header look like this:
<HEAD><TITLE>babababa..</TITLE> <META HTTP-EQUIV="Expires" CONTENT="0"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> </HEAD><BODY BGCOLOR='#FFFFFF'>
Yup, this web server has its own form. My script includes all the parameters from the original form, except all hidden and default values.

The result page should be redirected and I will obtain the final one. But the response I got tell me there is no redirection. I used push @{ $ua->requests_redirectable }, 'POST'; as POST can't redirect automatically.

Replies are listed 'Best First'.
Re^5: Submitting queries to server
by ikegami (Patriarch) on Sep 15, 2005 at 14:55 UTC

    The parent meant the HTTP header, not the HTML one. That's where the redirection command is located. You might have seen redirections in the HTML header in HTTP-EQUIV tags on other sites, but HTTP-EQUIV means "should be in the HTTP header".

    If you still have problems, show us the HTTP header.

      Sorry, what should I do to show you HTTP header? Actually I'm new to this.
        # The line you already have, but I renamed the var. my $response = $ua->request($req); #print $response->content(); # Prints the content. print $response->as_string(); # Prints the header and the content.