With a 501, it sound like the server may not be set up for https: DESCR: The Web server does not support the functionality required to fulfill the request. Please check you URL for errors, and contact the Web server's administrator if the problem persists.
Otherwise, you should try the LWP modules: Something like: use strict; use LWP::UserAgent; use HTTP::Request::Common qw(POST); use LWP::Protocol::https; my $URL = "https://domain.com/cgi-bin/script.pl"; my $ua = new LWP::UserAgent or die "new LWP::UserAgent: $!\n"; my $req = POST $URL, Content_Type => 'form-data', Content => [ FieldName => $File ] or die "PST $URL: $!\n"; my $res = $ua->request($req) or die "request: $!\n"; if ($res->is_success) { print "Made successful connection\n\n"; print $ua->request($req)->as_string; } else { print "Scotty: Something happened to the script. Spock, check the dilithium crystals.\nSpock: Check them yourself.\nKirk: Don't make me come down there."; } #END Greg --- Guy Davis <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm a complete Perl newbie. I'm ripping apart someones code that accesses a > URL passed in arguments, scans it for forms and specific fields, fills out > those fields and then submits the form. > > It works great and I wanted to change it to work with a specific page and > fields to automate a process for the company I work for. Only problem is > that the page is returning a 501 error when accessing the page. The page > happens to be an HTTPS page and I'm wondering if this is happening because > it's a secure part of the site. > > I'm fairly confident that this is what's happening but if anyone could > verify that I'd greatly appreciate it. And whether it is or isn't a problem > does anyone have suggestions or clues as to what to do to access the page > through Perl? > > Thanks so much, > > Guy Davis > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
