cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Can I do this with curl - bind ip to ssl connection

From: Christopher Bowler <chris_at_bowler.co.uk>
Date: Sat, 03 Sep 2011 23:44:49 +0100

Hi Ive been using this to bind an ip and make an ssl connection

$sourceip = 'xx.xx.xx.xx'; //IP to bind
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_bind($sock, $sourceip);
socket_connect($sock, 'dac.nic.uk', 3043);

Which works great , but now I need to connect to
ssl://epp.nominet.org.uk:700 ie

socket_connect($sock, 'ssl://epp.nominet.org.uk', 700);

This however does not work as socket_bind does not understand ssl://

Can I use curl to do this?

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2011-09-04