AW: AW: [Zope] Source from form result.
Tino Wildenhain
tino@wildenhain.de
Thu, 03 May 2001 14:51:41 +0200
Hi Marc,
as I told you already, the stuff in lib/python/ZPublisher/Client.py
is probably what you want.
There is a class "Function"
which takes the following arguments:
Fuction(url,
arguments=(),
method=None,
username=None,
password=None,
timeout=None,
**headers)
In your example, method should be "POST" and arguments
is a dictionary of key:value pairs.
HTH
Tino Wildenhain
> :-) Yes, there is an other :-))
>
> Ok, I will try to explain. ... Somewhere in the Web, there is a Website,
> out of the world of zope:-), that provides a form with a submit button.
> this form passes some arguments with the syntax:
> <input type="hidden" name="x" value="y"> ...
>
> If you klick on submit button, you get displayed some pictures. so far so
> good ...
>
> I want to create a zope application, that automatically gets the source of
> this result page, extracts the urls of the picutres and finally uploads
> these pictures into my zopeserver.
>
> The problem is, that it is not possible to pass the variables in the url
> like this:
> http://server/index.html?x=y.
>
> So I am looking for a way of being able to handle the source code of this
> result. Extraction of the urls is not a problem.
>
> Thanks for your interest ...
>
> Marc
>
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )