Subject: | Net-SMS-Web doesn't allow the CONNECT proxy method |
I use Net::SMS::O2 to talk to O2's SMS gateway. O2 use HTTPS to login,
then HTTP for the SMS submission. Unfortunately, I live behind a proxy
that insists on using the CONNECT method to talk to https servers, but
Net::SMS::Web doesn't support this method. The following patch (if I've
diff'ed it correctly) fixes the issue, by adding the CONNECT method as a
valid method.
--- Net-SMS-Web-0.015\Web.pm Mon Mar 03 11:09:40 2003
+++ c:\progfile\perl-5.8.7\site\lib\Net\SMS\Web.pm Sat Apr 22
23:21:47 2006
@@ -178,7 +178,7 @@
my $request;
- if ( $method =~ /^(GET|HEAD)$/ )
+ if ( $method =~ /^(GET|HEAD|CONNECT)$/ )
{
$url .= "?$params" if $params;
$request = HTTP::Request->new( $method, $url );