A
a
If I want to process the search result, I need to fill out the form, submit
and wait for the reply from the server before I process the search result.
I would like to add some traffic control to it, like writing a loop to wait
for the $response -> is_success, then break the loop. It may need to pass
the token to the OS for receiving the success message. How can I do it?
Thanks
e.g
my $ua = LWP::UserAgent -> new;
my $response = $ua->post(
"website.cgI",
[
textform => "search value"
]
);
#loop wait for is_success
if ($response -> is_success){
print $response -> status_line;
}
#loop
and wait for the reply from the server before I process the search result.
I would like to add some traffic control to it, like writing a loop to wait
for the $response -> is_success, then break the loop. It may need to pass
the token to the OS for receiving the success message. How can I do it?
Thanks
e.g
my $ua = LWP::UserAgent -> new;
my $response = $ua->post(
"website.cgI",
[
textform => "search value"
]
);
#loop wait for is_success
if ($response -> is_success){
print $response -> status_line;
}
#loop