I am able to send HTTP POST a text file to my server using the following cURL command:

```
curl -i -F file=@file.txt http://www.website.com/put_file

```

The server is expecting a file from $\_FILES['file'].

I have the following so far but it is not working:

```
$url = http://www.website.com/put_file
$file = "c:\file.txt"
$wc = new-object System.Net.WebClient
$wc.UploadFile($url, $file.FullName)

```

it returns 0, and it did not upload to the server

How can I send the file as $\_FILES['file']? Also, how can I see the response from the server?