Asynchronous PHP calls to C# -
Asynchronous PHP calls to C# -
$fp = fsockopen($this->_xmlhost, 443, $errno, $errstr, 10); if (!$fp) { //echo "$errstr ($errno)<br />\n"; } else { $result = $this->curlspost($this->_xmlurl, $sendxml ,10); $result = str_replace('getlicinfoold','getlicinfo', $result); $xml = new simplexmlelement($result, libxml_nocdata); fclose($fp); homecoming $xml; }
above php code need convert c#.
my question purpose of using fsockopen , necessary convert c# side? can't send curl via webrequest in c# , done it?
just send request using webclient class. abstracted bit more using webrequest.
http://msdn.microsoft.com/en-us/library/debx8sh9%28vs.80%29.aspx
c# php asynchronous
Comments
Post a Comment