Thanks by the response Bill. I investigated a bit more and found Tamper, a firefox extension to view and modify HTTP/HTTPS headers and post parameters.
Then I discovered that this form that I need to deal with, use multipart/form-data and I must deal also with boundaries (http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html). I'm reading a bit more to fully understand this stuff and may be the WebClient is usable as is or I can modify it to this sort of use. I will comment when have more news. Thanks again by the help. Germán. 2010/6/1 Schwab,Wilhelm K <[email protected]>: > You can do a simple "man in the middle attack" on yourself. One approach > would be to set up your own web server, serve the page with the form to a > "real" browser and see what it sends when you submit the form. There is > probably also a way to do it with a proxy of some sort, either off the shelf > or one you write to log traffic both ways, and then you quickly get a picture > of how the conversation works. A network sniffer might be another option. > > I have had to do things like this with either network or serial port traffic > at various times. A few years back, an engineer with a medical device > manufacturer was late delivering something that we happened to need at a time > that was inconvenient for him. The solution: blame the confusion on the > customer (me), of course, and hope that he could later give us something that > might make things "easier" on us (which would be a working version of their > new software). It got pretty ridiculous shortly before he had to admit that > it didn't work. The funny thing was that their demo program for the "new > protocol" was using something that looked exactly like the old one :) I was > able to show that because I wrote a replacement for their device and > connected their program to it: it was obviously not doing what he was > claiming. > > Bill > > ________________________________________ > From: [email protected] > [[email protected]] On Behalf Of Germán Arduino > [[email protected]] > Sent: Monday, May 31, 2010 1:39 PM > To: [email protected] > Cc: The general-purpose Squeak developers list > Subject: Re: [Pharo-project] Using WebClient > > Talking of post method, I tried to capture it with Firebug to > understand what data post with WebClient, but no way until now. > > Exist some trick to obtain the exact content of the data to post only > debuggin the web page? > > Cheers. > > > 2010/5/29 Germán Arduino <[email protected]>: >> I think that is a post method in this case, but can't make it work (yet). >> >> 2010/5/29 Schwab,Wilhelm K <[email protected]>: >>> It's been a long time, but won't the button cause the browser to send a >>> post or get (whichever action is specified in the form) to the server? It >>> might be enough to decide the content of that and send it over the socket. >>> I am probably thinking in CGI terms, which might not be what you need. >>> >>> >>> ________________________________________ >>> From: [email protected] >>> [[email protected]] On Behalf Of Stéphane Ducasse >>> [[email protected]] >>> Sent: Saturday, May 29, 2010 4:14 PM >>> To: [email protected] >>> Subject: Re: [Pharo-project] Using WebClient >>> >>> if you get answers from squeak-dev let us know. >>> >>> >>> Stef >>> >>> >>> On May 29, 2010, at 10:02 PM, Germán Arduino wrote: >>> >>>> Hi: >>>> >>>> I'm trying to automate some operations on a web page that requires >>>> authentication. >>>> >>>> I managed to arrive to the form that I need to process, authenticated >>>> without problems. >>>> >>>> But I can't figure out how to process the button (is a button of this type: >>>> >>>> <input class="lButton" style="" name="submit_search" >>>> value="Create File" type="submit"> ) to execute the Create File action. >>>> >>>> The form have two dates (that I can calculate and fill in) but I can't >>>> to imagine how to process the submit button programmatically. >>>> >>>> Any hint will be appreciated. >>>> >>>> Cheers. >>>> >>>> -- >>>> ================================================= >>>> Germán S. Arduino <gsa @ arsol.net> Twitter: garduino >>>> Arduino Software & Web Hosting http://www.arduinosoftware.com >>>> PasswordsPro http://www.passwordspro.com >>>> ================================================= >>>> >>>> _______________________________________________ >>>> Pharo-project mailing list >>>> [email protected] >>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>> >>> >>> _______________________________________________ >>> Pharo-project mailing list >>> [email protected] >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>> >>> _______________________________________________ >>> Pharo-project mailing list >>> [email protected] >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>> >> >> >> >> -- >> ================================================= >> Germán S. Arduino <gsa @ arsol.net> Twitter: garduino >> Arduino Software & Web Hosting http://www.arduinosoftware.com >> PasswordsPro http://www.passwordspro.com >> ================================================= >> > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
