title: curl POST statement to RCurl or httr
body: <p>I have this working curl statement to post a file to Nokia's HERE batch geocoding service...</p>
  
  <pre><code>curl -X POST -H 'Content-Type: multipart/form-data;boundary=----------------------------4ebf00fbcf09' \
       --data-binary @example.txt \
       'http://batch.geocoder.cit.api.here.com/6.2/jobs?action=run&amp;mailto=test@gmail.com&amp;maxresults=1&amp;language=es-ES&amp;header=true&amp;indelim=|&amp;outdelim=|&amp;outcols=displayLatitude,displayLongitude,houseNumber,street,district,city,postalCode,county,state,country,matchLevel,relevance&amp;outputCombined=false&amp;app_code=AJKnXv84fjrb0KIHawS0Tg&amp;app_id=DemoAppId01082013GAL'
  </code></pre>
  
  <p>I have tried this:  </p>
  
  <pre><code>library(RCurl) 
  url &lt;- "http://batch.geocoder.cit.api.here.com/6.2/jobs?    action=run&amp;mailto=test@gmail.com&amp;maxresults=1&amp;language=es-ES&amp;header=true&amp;indelim=|&amp;outdelim=|&amp;outcols=displayLatitude,displayLongitude,houseNumber,street,district,city,postalCode,county,state,country,matchLevel,relevance&amp;outputCombined=false&amp;app_code=AJKnXv84fjrb0KIHawS0Tg&amp;app_id=DemoAppId01082013GAL'" 
  postForm(url, file=fileUpload(filename="example.txt",
                   contentType="multipart/form-data;boundary=----------------------------4ebf00fbcf09"))
  </code></pre>
  
  <p>And this:  </p>
  
  <pre><code>library(httr)
  a &lt;- POST(url, body=upload_file("example.txt", type="text/plain"),
            config=c(add_headers("multipart/form-data;boundary=----------------------------4ebf00fbcf09")))
  content(a)
  </code></pre>
  
  <p>Using this file as <code>example.txt</code>: <a href="https://gist.github.com/corynissen/4f30378f11a5e51ad9ad" rel="nofollow">https://gist.github.com/corynissen/4f30378f11a5e51ad9ad</a></p>
  
  <p>Is there any way to do this property in R?</p>