Skip to content

Instantly share code, notes, and snippets.

Created September 17, 2010 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/585135 to your computer and use it in GitHub Desktop.
Save anonymous/585135 to your computer and use it in GitHub Desktop.
sub do_httpx3 {
my ($method, $usessl, $site, $port, $path, $headers,
$content, $mime_type, $crt_path, $key_path) = @_;
my ($response, $page, $h,$v);
if ($content) {
$mime_type = "application/x-www-form-urlencoded" unless $mime_type;
my $len = blength($content);
$content = "Content-Type: $mime_type$CRLF"
. "Content-Length: $len$CRLF$CRLF$content";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment