http request loop fails after first loop

Hey,

i've got this script which should send a HTTP request continuously (its in a loop). it works the first time, but doesnt seem to be able to connect second time down the loop.

ive added client.stop and client.flush but still seem to be getting the problem,

you can view my snippet of code below.

http://pastie.org/4200860

PLEASE HELP! i have been stuck on this all day

I use the code here.

It loads the Google home page every 10 seconds. See if it works for you. Maybe you will get some ideas from it.

you can view my snippet of code below.

Or not. When you post ALL of your code, I'll look.

you can view my snippet of code below.

There is a # in the posting tool bar for including your code in the post if you really want anybody to look.