Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread mtk via Pharo-users
--- Begin Message --- Hi Attila, many thanks for your explanation - now it works by simply putting: GET:'/bac/' -> [:req | BloodAlcoholCalculator a:(req at:#a) r:(req at:#r) kg:(req at:#kg) ]; So you and Joachim were both right... :-) That makes it even easier to work with teapot. Kind regar

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread mtk via Pharo-users
--- Begin Message --- Hi Joachim, thanks for your attention to this issue. I tried to change it to #a, #r or #kg, but this didn't work. It works with the following by leaving the '\?' out: GET:'\/bac\/a=(\d*)&r=(\d*.\d*)&kg=(\d*)' asRegex -> [:req | BloodAlcoholCalculator a:(req at:1) r:(req at:

Re: [Pharo-users] Teapot and Regex

2015-08-04 Thread mtk via Pharo-users
--- Begin Message --- Hi Joachim, thanks for your feedback. Concerning the order of the values I rely solely on the teapot error message. Besides I have no idea how I could make this GET request independant from the order the HTML form generated. Maybe with Javascript? But I assume this simple sce

[Pharo-users] Teapot and Regex

2015-08-04 Thread mtk via Pharo-users
--- Begin Message --- Dear Smalltalkers (Pharonistas?), while trying out teapot in Pharo4, I encountered the following: I have made a plain HTML form which sends data to a teapot URL. Here is what the browser is sending: http://localhost:1701/bac/?a=88&r=0.7&kg=77 To answer this request via teap