[Zope] sending form data offsite

Ed Colmar ed@greengraphics.net
Wed, 5 Mar 2003 23:08:45 -0800 (PST)

Hi AM and zope cru!

Here is the quick external method I built to do this...

If anyone is familiar with urllib and can tell me if I need to do
something different I'd appreciate it!

def formsender(self, completeurl):
    """ This method is used to transparently send form data to an external

    completeurl is the entire url including form field values."""
    import urllib
    result = urllib.URLopener().open(completeurl)

On Wed, 5 Mar 2003, AM wrote:

> Unless the other server returns to a page on your site, the only thing
> you can probably do is to use and external method that uses something
> like wget/lynx to post the data and get somthing back to be parsed by
> the method.
> hth
> AM
> Ed Colmar wrote:
> >Hi fellow zope hackers!
> >
> >I'm building a site for someone who wants to have the entire site within
> >zope, to connect to dbs, etc...  But they use a service that requires them
> >to post form data to a master server.
> >
> >Is there an easy way (in dtml or python) to do this without seeing the
> >data transfer or ending up at th other server's pages?
> >
> >So far I've considered making an external method that uses lynx and dumps
> >the return data.  Is this the best way?
> >
> >Thanks for the help!
> >
> >-ed-
> >
> >
> >

Green Graphics   :::   Print and Web Design   :::   510.923.0000