I have a http link that points to .asmx. I tried to call file开发者_JAVA技巧_get_contents or fopen to POST data. But it returns that the http stream cannot be opened.
Is there any hint on open .asmx ?
Thanks.
It has nothing to do with being an asmx file. You need to send post data.
You can use the php curl function for it.
Example: CURL
as long as your request should be processed only on the server (and no JS or other client side processing should be performed) you can use curl:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "your_link");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>
精彩评论