For months now I have had a Chevereto 2 image host running and a couple days ago I was forced to migrate it over to a new VPS. Ever since I have been unable to upload my images from my existing bash script. Basically the code I use moves images to the local server's /var/www/jpg/ folder so that they can be cURL uploaded into Chevereto via the API url, code for this is as follows:
curl -s "http://chevereto2.Image.Host.HostNa...verHostname/jpg/imageFileName.jpeg&format=xml" >> .Links.swp;
I also used to be able to just enter something similar to this manually in a web browser to make this work:
http://chevereto2.Image.Host.HostName.tdl/api?upload=http://someIP/jpg/someFile.jpeg
Using either of the aforementioned ways now the only thing I get when I try to do these is as follows:
{"status_code":403,"status_txt":"image base64 string must be sent using POST method"}
I have confirmed that its not a firewall issue as I was able to wget the image to the image host. I also thought it may have been a mod_rewrite issue but I rsync'd all of my apache2 conf files from the original server and made sure they were updated to reflect the new server's hostname and/or IP address.
Any clues as to how I can resolve this error so that I can get my Chevereto 2.0 image host back on track with allowing me to cURL upload via a bash script would be most appreciated!
curl -s "http://chevereto2.Image.Host.HostNa...verHostname/jpg/imageFileName.jpeg&format=xml" >> .Links.swp;
I also used to be able to just enter something similar to this manually in a web browser to make this work:
http://chevereto2.Image.Host.HostName.tdl/api?upload=http://someIP/jpg/someFile.jpeg
Using either of the aforementioned ways now the only thing I get when I try to do these is as follows:
{"status_code":403,"status_txt":"image base64 string must be sent using POST method"}
I have confirmed that its not a firewall issue as I was able to wget the image to the image host. I also thought it may have been a mod_rewrite issue but I rsync'd all of my apache2 conf files from the original server and made sure they were updated to reflect the new server's hostname and/or IP address.
Any clues as to how I can resolve this error so that I can get my Chevereto 2.0 image host back on track with allowing me to cURL upload via a bash script would be most appreciated!