curl-users
curl: Argument list too long
From: Harry <lolwutaf2_at_gmail.com>
Date: Fri, 4 Dec 2009 05:23:59 +0000
Date: Fri, 4 Dec 2009 05:23:59 +0000
Hi, I am trying to get cURL to upload an image scrotted onto a PHP file uploader.
Here is my code so far, if you can help me, I'd be glad.
#!/bin/bash
scrot screenshot.png
curl -v -A "scrotty-v1" "http://harryy.us/upload/index.php" --max-time '60' --max-filesize '5000000' -F "mailfile=`cat screenshot.png`"
At the moment, I get "curl: Argument list too long".
Thank you in advance.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-04