Happy Holidays
Posted: December 29th, 2008 | Author: baldur | Filed under: All, Travels | Tags: dogs | No Comments »Seriously never seen a happier dog than Scout!
Seriously never seen a happier dog than Scout!
So I like everyone else have been scrambling to save some $$$ and one expense that was hard to justify was to keep an Amazon EC2 image running for My blog, and other pet projects that didn’t get any traffic to speak one of which was Grubsnitch.com. But now that I have settled on just using my age old Dreamhost account to store these things until that becomes unreasonable. I finally managed to get this mephisto instance running on there thanks to this page and my next projecdt will be to get grubsnitch.com running there as well.
Ok, this is hardly worth putting down but it will work for me as a reminder. I have been loving the curl utility allot lately. I had a situation where I needed a to hit a page rather frequently and I really wanted to just stick it in a bash loop and just have it run. The problem is that the page was behind user/password credentials. But as it turns out curl can have it’s own cookie jar so it can sustain a session between requests. Here is how.
curl -d "user[login]=username&user[password]=password" \\
-c domain.cookie http://example.com/user/login
Also another trick I have been addicted to is curling a domain and only getting the response headers
curl -I http://domain.example.com
Who said I don’t like browsers?
Recent Comments