---
# System prepended metadata

title: Unity WebRequest Code

---

# Unity WebRequest Code

```
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(server_url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
```