title: Google image search by URL, unable to crawl the page
body: <p>I am trying to use Google image search by <strong>url</strong> for research purposes. That was after I gave up searching by the actual image since I can't really get it to work.</p>
  
  <p><strong>What is done so far</strong></p>
  
  <p>Using PHP, I can issue an HTTP request to <a href="https://www.google.com/searchbyimage?image_url=https://www.google.com/images/nav_logo117.png" rel="nofollow noreferrer">https://www.google.com/searchbyimage?image_url=https://www.google.com/images/nav_logo117.png</a> </p>
  
  <p>If you copy that URL into your browser, you see the results (seems some automatic redirects take place here).</p>
  
  <p>However, if you try to manually request the URL, through PHP for example, or through <a href="http://web-sniffer.net/?url=images.google.com/searchbyimage?image_url=https://www.google.com/images/nav_logo117.png" rel="nofollow noreferrer">http://web-sniffer.net/?url=images.google.com/searchbyimage?image_url=https://www.google.com/images/nav_logo117.png</a> you get an HTTP 302 error that says that the page has been moved to some other URL. </p>
  
  <p>I extracted that URL, tried it out on the browser and again it works. But again if you try this URL manually you get another HTTP 302 error, which finally takes you to Google's homepage. </p>
  
  <p>I've seen questions like: <a href="https://stackoverflow.com/questions/14634321/script-to-use-google-image-search-with-local-image-as-input">Script to use Google Image Search with local image as input</a> which seem to have been able to do it, but the asker didn't run into the same problem I did</p>