title: Windows 7 R version 3.4.0 httr -- Get 404 error when connecting to census Geocoder api
body: <p>I am running the following code in order to get send a batch file trough the Census Geocoder api.  I looked at <a href="https://stackoverflow.com/questions/35440178/census-batch-geocoding-api-with-source-addresses-in-data-frame-not-csv-in-r">This Question</a> and the Documentation for the <a href="https://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.pdf" rel="nofollow noreferrer">API</a>.  this did not help me.  I expect to get some data returned with information about the address... and not get a 404 error.  I seem to be getting the error on the return call, I seem to be sending the data okay, but am not able to retrieve the data?  please help me figure out why I am getting the error. thank you!</p>
  
  <pre><code>require(httr)
  
  req &lt;- POST("http://geocoding.geo.census.gov/geocoder/geographies/addressbatch", 
          body = list(
            addressFile = upload_file("addresses.csv"),
            benchmark = "Public_AR_Census2010",
            vintage = "Census2010_Census2010"
          ), 
          encode = "multipart",
          verbose())
  stop_for_status(req)
  content(req)
  </code></pre>
  
  <p>I am getting the following output</p>
  
  <pre><code>-&gt; POST /geocoder/geographies/addressbatch HTTP/1.1
  -&gt; Host: geocoding.geo.census.gov
  -&gt; User-Agent: libcurl/7.54.1 r-curl/2.8.1 httr/1.3.1
  -&gt; Accept-Encoding: gzip, deflate
  -&gt; Accept: application/json, text/xml, application/xml, */*
  -&gt; Content-Length: 615
  -&gt; Content-Type: multipart/form-data; boundary=------------------------c0a7880f53fb0ca4
  -&gt; 
  &gt;&gt; --------------------------c0a7880f53fb0ca4
  &gt;&gt; Content-Disposition: form-data; name="addressFile"; 
  filename="addresses.csv"
  &gt;&gt; Content-Type: text/csv
  &gt;&gt; 
  
  &gt;&gt; "Unique_ID","Street address","City","State","ZIP"
  &gt;&gt; 1,"125 Worth Street","New York","NY","10013"
  &gt;&gt; 2,"258 Broadway","New York","NY","10007"
  &gt;&gt; 3,"8 Centre Street","New York","NY","10007"
  
  &gt;&gt; 
  &gt;&gt; --------------------------c0a7880f53fb0ca4
  &gt;&gt; Content-Disposition: form-data; name="benchmark"
  &gt;&gt; 
  &gt;&gt; Public_AR_Census2010
  &gt;&gt; --------------------------c0a7880f53fb0ca4
  &gt;&gt; Content-Disposition: form-data; name="vintage"
  &gt;&gt; 
  &gt;&gt; Census2010_Census2010
  &gt;&gt; --------------------------c0a7880f53fb0ca4--
  
  &lt;- HTTP/1.0 302 Found
  &lt;- Location: 
  https://geocoding.geo.census.gov/geocoder/geographies/addressbatch
  &lt;- Server: BigIP
  &lt;- Connection: Keep-Alive
  &lt;- Content-Length: 0
  &lt;- 
  -&gt; GET /geocoder/geographies/addressbatch HTTP/1.0
  -&gt; Host: geocoding.geo.census.gov
  -&gt; User-Agent: libcurl/7.54.1 r-curl/2.8.1 httr/1.3.1
  -&gt; Accept-Encoding: gzip, deflate
  -&gt; Accept: application/json, text/xml, application/xml, */*
  -&gt; 
  &lt;- HTTP/1.1 404 Not Found
  &lt;- Cache-Control: no-cache, no-store, max-age=0
  &lt;- Connection: close
  &lt;- Date: Thu, 25 Jan 2018 22:03:01 GMT
  &lt;- Pragma: no-cache
  &lt;- Content-Type: application/json
  &lt;- Expires: Wed, 31 Dec 1969 23:59:59 GMT
  &lt;- Content-Language: en-US
  &lt;- Vary: Origin
  &lt;- 
  &gt; stop_for_status(req)
  Error: Not Found (HTTP 404).
  &gt; content(req)
  named list()
  </code></pre>