开发者

How can I run some calls to a site as Test

开发者 https://www.devze.com 2023-02-21 00:38 出处:网络
I need to run different consecutive calls to a web 开发者_如何学Cservice with no particular response needed to be read, just need execution.

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
0

精彩评论

暂无评论...
验证码 换一张
取 消