I successfully do it with following:
<html>
<body>
<form action="https://www.google.com/searchbyimage/upload" METHOD="POST" enctype="multipart/form-data">
<input type="file" name="encoded_image">
<input type="Submit" name="sch" value="sch">
</form>
</body>
</html>
when i select ~/Dropbox/img/green.jpg, and click "sch", it auto redirect to correct google result
but when i use following:
curl -i -F name=green.jpg -F filedata=@/home/roroco/Dropbox/img/green.jpg https://www.google.com/searchbyimage/upload
the google result show:
I hope search by image in curl how to do it?