| r17 vs r18 | ||
|---|---|---|
| ... | ... | |
| 149 | 149 | console.error(err); |
| 150 | 150 | }); |
| 151 | 151 | }}} |
| 152 | ||
| 153 | * Visual Basic --이거 쓰는 사람이 아직 있을까...-- | |
| 154 | {{{#!syntax python | |
| 155 | Imports System | |
| 156 | Imports System.Net.Http | |
| 157 | Imports System.Threading.Tasks | |
| 158 | ||
| 159 | Module Module1 | |
| 160 | Sub Main() | |
| 161 | PostRequest().Wait() | |
| 162 | End Sub | |
| 163 | ||
| 164 | Async Function PostRequest() As Task | |
| 165 | Dim url As String = "https://www.google.com" | |
| 166 | Dim client As New HttpClient() | |
| 167 | ||
| 168 | Dim response As HttpResponseMessage = | |
| 169 | Await client.PostAsync(url, Nothing) | |
| 170 | ||
| 171 | Console.WriteLine(response) | |
| 172 | ||
| 173 | Dim text As String = Await response.Content.ReadAsStringAsync() | |
| 174 | Console.WriteLine(text) | |
| 175 | End Function | |
| 176 | End Module | |
| 177 | }}} | |
| 152 | 178 | == 범죄 == |
| 153 | 179 | 사이버 공격은 엄연한 범죄이다. |