| r19 vs r20 | ||
|---|---|---|
| ... | ... | |
| 203 | 203 | } |
| 204 | 204 | }}} |
| 205 | 205 | |
| 206 | * windows CMD | |
| 207 | {{{curl -X POST "https://www.google.com"}}} | |
| 208 | ||
| 209 | * PowerShell | |
| 210 | {{{#!syntax powershell | |
| 211 | $url = "https://www.google.com" | |
| 212 | ||
| 213 | $response = Invoke-WebRequest -Uri $url -Method Post | |
| 214 | ||
| 215 | $response | |
| 216 | ||
| 217 | $response.Content | |
| 218 | }}} | |
| 219 | ||
| 220 | * TypeScript | |
| 221 | {{{#!syntax typescript | |
| 222 | const url: string = "https://www.google.com"; | |
| 223 | ||
| 224 | fetch(url, { method: "POST" }) | |
| 225 | .then((res: Response) => res.text()) | |
| 226 | .then((text: string) => { | |
| 227 | console.log(text); | |
| 228 | }) | |
| 229 | .catch((err: any) => { | |
| 230 | console.error(err); | |
| 231 | }); | |
| 232 | }}} | |
| 233 | ||
| 234 | ||
| 206 | 235 | == 범죄 == |
| 207 | 236 | 사이버 공격은 엄연한 범죄이다. |