On vendredi 7 novembre 2008, Robert Moss wrote: > i tried using \r\n and nothing positive happened. i got 3440 bytes, 1 more > byte than previously (recount showed 3439 bytes, i forgot the debug header) > > DO WHILE (NOT Eof(ME)) 'This crap isnt working > READ #ME, sBuf, Lof(ME) > sTotal &= sBuf > WAIT 1 'I added this line since last message, and after waiting 1 > second, i got the error that socket was closed. > LOOP > > Does this look right to you? > > POST /process_data.php HTTP/1.0 > Host: www.myhost.com > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1) > Referer: http://www.myhost.com/index.php > Cookie: remember=mycine; > login=mycine%2B9e6c670bf76e9a2c07a9921c56d3532ecacf2ae5; > toolbar=mycine%2BC%2B75a593a34aa5ba8e5e5788b7c899802e; > Content-Type: application/x-www-form-urlencoded > Content-Length: 99 > > type=process_data&feedset=0&value=red%20apple&table=stuff&criteria=exact&se >t_price=340&old_price=0 >
To read a socket, you need to do the same way as in the ClientSocket example, i.e. by using events. If you want to do the way you wrote, you have to use the svn trunk (Gambas 3), because I changed many thing in the gb.net component to allow this way of reading/writing sockets. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user