Thanks for your comments.

I found a piece of code in the NUG archive that seems to have solved  
the problem.

with a boolean property that is set to true in the page received event

do until mybool = true
        me.poll  // the http socket
loop

quit

Once the loop releases the application quits and the data is still  
being sent.

Rob

> Message: 14
> Date: Thu, 22 Feb 2007 15:55:02 -0600
> From: Jim Payne <[EMAIL PROTECTED]>
> Subject: Re: http socket post
> To: REALbasic NUG <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Robert Carroll wrote:
>> Is there a reliable way to determine when the post command of the
>> httpsocket is finished sending data?
>>
>> I need my application to quit after a data form has been sent
>> successfully. So far the form is only sent properly when the
>> application stays running. Checking the send progress event with
>>
>> if bytesleft = 0 then
>> quit
>> end
>>
>> does not resolve the problem. I read the bytesleft as 0, but the form
>> does not get sent. Similarily, inserting an arbitrary pause with
>> while...wend doesn't help either (although perhaps this also stops
>> the post action).
>>
>> any suggestions would be appreciated
>>
>> thanks
>>
>> Robert Carroll
>> Toronto
>> RB 5.5.5
>>
> Robert:
>
> How do you terminate the post command string?  You may need two or  
> more
> line ends:  %20%10%20%10  .
>
> Anyway it would be easy to try.
> Regards,
> Jim Payne
>
>
>
>
> Message: 19
> Date: Thu, 22 Feb 2007 16:12:57 -0800
> From: "Dennis Birch" <[EMAIL PROTECTED]>
> Subject: Re: http socket post
> To: "REALbasic NUG" <[email protected]>
> Message-ID:
>       <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>
>
> You might want to try adding a Socket.Close call to clean things up
> after you have 0 bytes left, before quitting.
>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to