HTTP post constantly submitting

Hello all,

I have a rails request that I have to parse and re-submit to another
form sitting on a web server on another machine.
I use the following code to post the form

{'Username'=>'', 'message'=>params[:reply]})

And it works nicely, except that it will not stop resubmitting the
form, even after the rails app has moved on the form is continuously
resubmitting in the background.

I think this is something stupid that stupid old me ain't picking up
on. Nevertheless it's annoying and I want it gone, so any help is
greatly appreciated.