【curl调用http】
http://www.21andy.com/blog/20080602/1154.html
http://www.programmersheaven.com/2/Art_Curl_3_p7
【curl调用wsdl】
http://socol.iteye.com/blog/1088152
【wsdl vs. soap】
http://blog.csdn.net/pautcher_0/article/details/6798351
【curl命令详解】
http://blog.csdn.net/foxman209/article/details/6278093
http://blog.csdn.net/learnhard/article/details/5683703
【curl各种超时时间】:
--connect-timeout <seconds>
Maximum time in seconds that you allow the connection to the server to take. This only limits the connection phase, once curl has connected this option is of no more use. See also the -m/--max-time option.
If this option is used several times, the last one will be used.
-m/--max-time <seconds>
Maximum time in seconds that you allow the whole operation to take. This is useful for preventing your batch jobs from hanging for hours due to slow networks or links going down. See also the --connect-timeout option.
If this option is used several times, the last one will be used.
http://blog.chinaunix.net/uid-20788470-id-1841681.html
【demo】:
curl –d @request.xml –H “Content-Type:text/xml;charset=URF-8” http://localhost/servercenter/soap_all_srv.php?wsdl
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="urn:mytimeserv">
<soap:Body>
<now>
<format>H:i:s</format>
</now>
</soap:Body>
</soap:Envelope>