thanks Sven for the example, and more importantly for Zinc :-) On 02 Oct 2014, at 14:21, Sven Van Caekenberghe <sven@stfx.eu> wrote:
On 02 Oct 2014, at 12:16, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
Hi,
The Free french telecom company introduces a new feature that allow sending SMS to your own mobile phone using a HTTP query All you need is to activate the option at no cost, and use Pharo. Have fun :-)
ZnEasy get: 'https://smsapi.free-mobile.fr/sendmsg?user=YourLogin&pass=YourPassword&msg=H...'
Noury
That is cool, indeed.
I would write it as
ZnClient new url: 'https://smsapi.free-mobile.fr/sendmsg'; queryAt: #user put: 'YourLogin'; queryAt: #pass put: 'YourPass'; queryAt: #msg put: 'Hi From Pharo'; get.
The Percent Encoding and query building is then done for your.
Sven