I''m working with a site that requires me to post an XML page (WCTP formatted) to the site, then it will return some code for success or not. my current thought is: create a page with XML stuff post it manage response My main problem is that most of my use of Mechanize was to get the page then process info. I''m not very clear how I''d create a page from an unpopulated or "new" page object. Is using Mechanize just a bad idea for my case? If so, what is a better alternative? Thanks for any ideas or guidance. Mike B. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Quoting barsalou <barjunk at attglobal.net>:> I''m working with a site that requires me to post an XML page (WCTP > formatted) to the site, then it will return some code for success or > not. > > my current thought is: > > create a page with XML stuff > post it > manage response > > My main problem is that most of my use of Mechanize was to get the page > then process info. > > I''m not very clear how I''d create a page from an unpopulated or "new" > page object. >Nevermind...I figured this out and it was fairly strait forward: agent = Mechanize.new string = "my xml stuff here" page = agent.post(myurl,string) Please let me know if there is a "nicer" way to do this. Mike B. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.