简体   繁体   中英

How to make http get request\response to site?

I am new at web development, so how to make http request\\respone for some site ( http://google.com )

Thank you!

PS
I mean, that when my SomeController activated- i want send http request to another site,get data from it and send it into View

A client (browser) submits HTTP request to the server; then the server returns a response to the client. The response contains status information about the request and also contains the requested content. GET - requests data from a specified resource, http://google.com - you type this url in browser and hit the enter key, it's a get request and you see a page, that the response.

Click here for details.

Use HttpClient to connect a site from your mvc controller, click here for details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM