Hi Sluggers:

I'm not sure if anyone can help, but here goes.

I am posting to a form on another server using LWP::Post
routine.

The form at the other end basically contacts other websites and post the data
I sent. It does that for a number of databases processed by the form. Each
database has roughly about 50 items (i.e websites).

When I manually submit to the form at the other end, it takes me to a page
that constantly loading showing the status to each item in the current
database it's processing. So this may take some time until it has submitted my
data to the full database.

With my LWP script, once all the item in the database is submitted to, as part
of "$response->content()" I get the resulting html page that shows the status
of submission to each item if my post was successfully processed by the form.


My dilema is that at times I have notice that I never get anything back for
"$response->content()".

If my data was successfully processed by the form I submitted to, I get an
email back from the server where the forms resides.

But when "$response->content()" is never returned, I get no email back. So
something went wrong. I don't know what.

Does anyone has any ideas on how I can figure out why this happens ?

I actually put a loop that looks like this after my data is 
posted:

until ($response->is_success) { 
      sleep $sleep_;
      $count_sleep = $count_sleep + $sleep_;
   
      if ($count_sleep >= ($cycle*60)) {         
         last; 
      }
} # 

i.e wait for a significant amount of time but no longer than $cycle ($cycle
and $sleep_ are in minutes). 

I even had the loop just do this before the above:

until ($response->is_success) { 
      sleep $sleep_; # $sleep_ = 20 minutes
} # 

But I just never get a $response->is_success, as the script just stays up
forever.

What could cause "$response->is_success" to never occur. When I manually post
I'm always taken to the resulting page that the script normally gets back at
times. If it never occurs does this mean my data got lost when contacting the
form at the other end ??

Any insight on this is appreciated.

Louis.

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to