I need to run different consecutive calls to a web 开发者_如何学Cservice with no particular response needed to be read, just need execution.
What is the simplest approach? I can run either asp.net or php script.
https://ws1/ws/ws.aspx?propid=10468&action=1&pwd=dsdgsdfgs
https://ws1/ws/ws.aspx?propid=1022&action=1&pwd=dsdgsdfgs
https://ws1/ws/ws.aspx?propid=4564&action=1&pwd=dsdgsdfgs
https://ws1/ws/ws.aspx?propid=104688&action=1&pwd=dsdgsdfgs
https://ws1/ws/ws.aspx?propid=11234&action=1&pwd=dsdgsdfgs
https://ws1/ws/ws.aspx?propid=5432&action=1&pwd=dsdgsdfgs
https://ws1/ws/ws.aspx?propid=23445&action=1&pwd=dsdgsdfgs
in PHP you would use the curl class to make requests to urls, and receive responses.
http://php.net/manual/en/book.curl.php
If using .NET, use the WebClient class to request URLs, and just ignore the responses.
Imports System.Net
Dim urls() As String = { "url1", "url2" }
Dim webClient As New WebClient()
For Each url in urls
webClient.DownloadData(url)
Next
精彩评论