如何调用URL或Web地址或发布此URL页面 [英] How to call a URL or web address or post this url page

查看:223
本文介绍了如何调用URL或Web地址或发布此URL页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此功能不会显示已发布的网页。当点击它时,显示任何也不显示网页下的页面



This Fuction does not show the posted url page.when click it doent show any nor show the page under the url

Public Sub callurl(url As String)
      Dim request As WebRequest = HttpWebRequest.Create(url)
      Dim response__1 As WebResponse = request.GetResponse()
      Dim reader As New StreamReader(response__1.GetResponseStream())
      Dim urlText As String = reader.ReadToEnd()
      ' it takes the response from your url. now you can use as your need
      Response.Write(urlText.ToString())
  End Sub






按钮点击









on button click


Dim url As String = "http://localhost:8080/wpt/main.html"
              callurl(url)

推荐答案

Public Function CheckResult(ByRef xmlString As String)

'Remaining goes here
'Download the response as JSON or XML 

End Function

Dim webClient As New System.Net.WebClient
Dim result As String = "Your URL"
Dim res = CheckResult(result)


这篇关于如何调用URL或Web地址或发布此URL页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆