[Pharo-project] Fwd: [Pharo-users] [SPAM] Re: WebClient
Stéphane,
On 11 Jun 2010, at 23:09, Stéphane Ducasse wrote:
Hi sven
Hi,
Andreas Raab's 'new' WebClient/WebServer seems quite nice, as he says himself:
As a result, we now have what I think is a pretty decent HTTP server and client implementation for Squeak 4.1 and hopefully we can nuke HTTPSocket sometime soon. WebClient is superior in every respect.
Is this something that will / should fit seamlessly into Pharo ? Or even become preinstalled ?
could be but not at the price to have concatenation of string and numbers. So this means that somebody would have to do a pass on the code and produce a pharo version that squeakers may want or not.
I went over the code and produced a version of WebClient-Core (and WebClient-Test) that passes all units tests in Pharo 1.1 rc 2:
Filename: WebClient-Core-SvenVanCaekenberghe.24.mcz Author: Sven Van Caekenberghe Timestamp: 14 June 2010 4:24:21 pm UUID: 92b7f407-8df1-4472-962b-45d99f2364b8 Ancestors: WebClient-Core-ar.23.mcz
Filename: WebClient-Tests-SvenVanCaekenberghe.12.mcz Author: Sven Van Caekenberghe Timestamp: 14 June 2010 4:25 pm UUID: f495c2cd-54bb-42a9-a6d7-f380cd656f3f Ancestors: WebClient-Tests-ar.11.mcz
Both at http://www.squeaksource.com/ADayAtTheBeach.
The only remaining method needed from the old WebClient-Pharo package is String#squeakToUtf8
squeakToUtf8 "Convert the receiver into a UTF8-encoded string"
^self convertToWithConverter: UTF8TextConverter new.
There are only 4 callers so I could change that as well, should I ? I checked the references to UTF8TextConverter and it feels as if you don't want a method like #squeakToUtf8 (apart from the name ;-)
If I remember correctly mike changed them because there were no use anymore.
I didn't try his ConfigurationOfWebClient since the last version was unreadable and it seemed like an experiment, while his textual explanation was easy to follow.
To load it into and to make the unit tests run in Pharo 1.0 I had to make a couple of fixes (to WebCookie#printOn: and WebServer class#serverString). Who should I sent these changes to ?
to andreas? may be ask him if he wants to have a version working also for pharo but without String#, override
I will contact Andreas directly once I know your position on the last remaining item.
Good
Sven
BTW, Is there a way to make a (old school) ChangeSet (or even another 'patch' package) out of the differences between versions in Monticello ?
Click on changes>history> and you can get the delta. Stef
On 14 Jun 2010, at 16:48, Stéphane Ducasse wrote:
I will contact Andreas directly once I know your position on the last remaining item.
Good
I did contact Andreas Raab and he integrated both of my patch sets upstream so that WebClient-Core now load and works on Pharo 1.1rc2 without the need for any Pharo specific patches. Sven
excellent news! thanks him for us Stef On Jun 15, 2010, at 10:19 AM, Sven Van Caekenberghe wrote:
On 14 Jun 2010, at 16:48, Stéphane Ducasse wrote:
I will contact Andreas directly once I know your position on the last remaining item.
Good
I did contact Andreas Raab and he integrated both of my patch sets upstream so that WebClient-Core now load and works on Pharo 1.1rc2 without the need for any Pharo specific patches.
Sven
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
On 15.06.2010 10:19, Sven Van Caekenberghe wrote:
On 14 Jun 2010, at 16:48, Stéphane Ducasse wrote:
I will contact Andreas directly once I know your position on the last remaining item.
Good
I did contact Andreas Raab and he integrated both of my patch sets upstream so that WebClient-Core now load and works on Pharo 1.1rc2 without the need for any Pharo specific patches.
I also sent him two patches. With the backported SocketStream fixes I now have Seaside running on WebClient in Pharo 1.0. The only thing missing is multipart POSTs (file uploads). Cheers Philippe
2010/6/19 Philippe Marschall <kustos@gmx.net>:
On 15.06.2010 10:19, Sven Van Caekenberghe wrote:
On 14 Jun 2010, at 16:48, Stéphane Ducasse wrote:
I will contact Andreas directly once I know your position on the last remaining item.
Good
I did contact Andreas Raab and he integrated both of my patch sets upstream so that WebClient-Core now load and works on Pharo 1.1rc2 without the need for any Pharo specific patches.
I also sent him two patches. With the backported SocketStream fixes I now have Seaside running on WebClient in Pharo 1.0. The only thing missing is multipart POSTs (file uploads).
Cheers Philippe
Hi Philippe: I sent an example method to do the multipart post (file upload) on other mail. I'm developing a service to a customer using that and it works. The only problem to a full automation is that you need to know previously the name of the fields included in the form (The same happens with other multipart post operations (not only with file upload)). I'm doing for now a trace with Firebug, check the post data and implement the method as I need, but should be nice to automate all :) Cheers. Germán. -- ================================================= Germán S. Arduino <gsa @ arsol.net> Twitter: garduino Arduino Software & Web Hosting http://www.arduinosoftware.com PasswordsPro http://www.passwordspro.com =================================================
participants (4)
-
Germán Arduino -
Philippe Marschall -
Stéphane Ducasse -
Sven Van Caekenberghe