From: Ivo M. <ei...@us...> - 2006-10-30 20:34:52
|
Il giorno ven, 27/10/2006 alle 20.03 +0200, Natale Vinto ha scritto: > Hi, i'm using the Alice.pm script also for my J2ME application goText ( > www.gotext.org , like raxle but GPL) and I saw that problem too.. Because > most website requires image code now I thought that WWW-SMS can support it > Errata corrige: Neither Raxle seems to work actually with Alice. GoText seems nice, I didn't know about it before -- If it works like Raxle I'll switch immediately. Is GoText actually using the real WWW-SMS code? > - using Tk or Gtk2 popup that display the image code if needed or ir Tk or > Gtk2 are available > Could be a solution, yes. A PopUp which just shows the image file, a human could then read the string and insert it in the PopUp, yes. > - using, if someone has already discovered it, an algorithm that get code from > image (I think very difficult but I saw someone successful in this) > Yes, we would need the backend algorithm. Maybe in Perl already. > And about service in general I thought that we can use XML in WWW-SMS. > We can do something like this : > This works for me, yes. Good idea. > service.xml > > <service_name>service</service_name> > <service_range>Italy,+39-33x etc</service_range> > > then > > for each URL to get we have a<session></session> tag > an sms website has usually a login page,ads page,sms link page,sms > form,logoff so the xml file could be > > <session> > <url>http://www.webiste.com/login</url> > <method>POST</method> > <regexp><td>(.*)</td></regexp> // to include something in next requets > or > check something > <data>username=user,pass=pass,other=$regexp</data> > <checkstring>Welcome</checkstring> // to see if login is successful > <other></other> //some other control > <response>ok=,ko=Login fault,change user or pass</response> > </session> > > so foreach <session> we have an HTTP GET or POST connection, this will make > the connection as perl script does. So script will be created automatically > and we could build a script that does queries on HTML page to automatically > get form info like firefox page info does. Just an idea for the future, what > do you think? > Sounds really interesting. This would anyway requre a complete rewrite of the WWW-SMS core which could result in quote some intensive work. Let's get this to the attention to all WWW-SMS developers, I'll Cc: to the devel mailing list. Best regards, I. -- .''`. Ivo Marino <ei...@us...> : :' : http://www.sourceforge.net/users/eim/ `. `` irc.FreeNode.net channel #www-sms `- UIN 32463141 + JID ei...@ja... |