[tbyte@arch shm]$ rm cookie output;token=$(curl -s -S -b cookie -c cookie https://auth.giantbomb.com/login/ | grep token | sed -e 's/.*token."[ ]value[=]"\(.*\)".*/\1/g');curl -s -S -b cookie -c cookie -L -i -d 'form[_username]=miles64' -d form[_password]=‘xxxxxxxx’ -d 'form[_target_path]=/login/?login=success' -d "form[_token]=$token" 'https://auth.giantbomb.com/check-login/' > /dev/null;curl -s -S -b cookie -c cookie http://www.giantbomb.com/videos/feed/hd/8/
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<title>Giant Bomb - Features - [hd]</title>
<link>http://auth.giantbomb.com/videos/feed/</link>
<copyright>2007 - CBS Interactive</copyright>
<language>en-us</language>
<itunes:subtitle xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">This is a subscriber only feed for videos on Giant Bomb</itunes:subtitle>
<itunes:author xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">Giant Bomb</itunes:author>
<itunes:summary xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">This is a subscriber only feed for videos on Giant Bomb</itunes:summary>
<description>This is a subscriber only feed for videos on Giant Bomb</description>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" href="http://auth.giantbomb.com/videos/feed/" rel="self" type="application/rss+xml"/>
<itunes:owner xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<itunes:name>Giant Bomb</itunes:name>
<itunes:email>bombcast@giantbomb.com</itunes:email>
</itunes:owner>
[tbyte@arch shm]$ curl -s -S -i -u 'miles64:xxxxxxxx' 'http://www.giantbomb.com/videos/feed/hd/8/'
HTTP/1.1 401 Unauthorized
Cache-Control: no-cache
Content-Type: text/plain; charset=utf-8
Date: Fri, 27 Dec 2013 09:18:21 GMT
Server: nginx/1.0.15
Set-Cookie: PHPSESSID=xxxxxxxx; path=/; domain=.giantbomb.com
Set-Cookie: device_view=not_mobile; expires=Mon, 27-Jan-2014 08:00:00 GMT; path=/; httponly
WWW-Authenticate: Basic realm="Subscriber Area"
X-Powered-By: PHP/5.4.17
Content-Length: 22
Connection: keep-alive
Authorization required
Removed the passwords/session ID from the post but obviously I used the same password.
Log in to comment