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

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -