troubleshooting Question

HTTP in .NET Application

Avatar of BenClark
BenClark asked on
Visual Basic.NET
1 Comment1 Solution220 ViewsLast Modified:
I have a VB.NET Windows application.
I would like to send an HTTP request to a web site and get back a response.

Something like:
------------------------------- MY WINDOWS APP CODE --------------------------------
DIM Req as httprequest
DIM Resp as httpresponse

httprequest.url = "URL to get"
httprequest.QueryString.add("Request", "Interfaces")
httprequest.exec
------------------------------- MY WINDOWS APP CODE WAITS FOR RESPONSE --

------------------------------ MY ASPX CODE ------------------------------------------
How do I send the results back.
response.write("Some XML String")  <<<< This would be HTML would it not?
response.QueryString.Add("Response", "XML List of Interfaces") <<<< I want to do something like this.
------------------------------ END MY ASPX CODE ------------------------------------------

------------------------------ MY WINDOWS APP CODE CONTINUES -------------------
Resp = httprequest.Response

Dim FullResponse as string = Resp.Response
Dim QString1 as string = Resp.QueryString("Response")  <<< Something like this

' Now I can process the return XML in the QString1 variable

----------------------------- ALL DONE ----------------------------------------------------

Need this fairly quickly.

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros