python -> perl help urllib.urlopen
Robert
k.robert at gmx.de
Fri May 9 07:16:20 EDT 2003
is there some Perl veteran here. for some odd reason I need to translate a
small python cgi script containing
import cgi,urllib
...
print urllib.urlopen( targeturl, post ).read()
to Perl. for standalone Perl I found
use CGI;
require("url_get.pl");
...
print url_get( $targeturl . "?" . $post);
working, but it doesn't work in a cgi script - url_get not there (mod_perl,
path-problems, ...?). And I cannot rely on more than standard perl
installation on the web server. obviously one cannot "use url_get;" like
"use CGI;"
those perl modules, usage, path and docu I do not come through. What would
be a likely solution?
Robert
More information about the Python-list
mailing list