title: How can I issue a google image search request via cURL?
body: <p>I'm trying to do a reverse image search by file upload using cURL. To that end I've opened the firefox network tab in the console and selected "copy as cURL" on the respective POST request. This gives me </p>
  
  <pre><code>curl 'https://www.google.de/searchbyimage/upload' -H 'User-Agent: ...' \
  -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
  -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www.google.de/' \
  -H 'Content-Type: multipart/form-data; boundary=---------------------------10498230641660457283476667604' \
  -H 'Cookie: ...' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'TE: Trailers' \
  --data '@/path/to/image.jpg'
  </code></pre>
  
  <p>User-Agent and Cookies have been omitted. <code>@/path/to/image.jpg</code> in the <code>--data</code> parameter was added by me because firefox's copy just read <code>--data ''</code>. </p>
  
  <p>In response to this I do get redirected successfully. But the page is almost empty and just reads "Search by image is unavailable. Please try again in a few hours." - rather opaque. Also it doesn't seem like cURL is actually transmitting the image in the first place.</p>
  
  <p>Where might I have erred?</p>