curl-users
Re: cookies + jsp = trouble
Date: Thu, 24 Nov 2005 01:00:37 -0600
When I trying going directly to the zip file, the page returned contains
this, among other stuff:
Access Denied
Access to this content is only allowed through the Technical Support
Portal.
Please start at www.nortel.com/support so that your credentials can be
checked for access to this particular content. Note that your browser
must
allow cookies for proper access.
Going to www.nortel.com/support just gets a redirect to:
http://www130.nortelnetworks.com/cgi-bin/eserv/cs/main.jsp
which contains a login link:
http://www130.nortelnetworks.com/cgi-bin/eserv/cs/main.jsp?level=0&logInOut=5
Following that link causes several redirects, finally getting to a page that
contains a login form. Along the way, I collected two cookies, BV_IDS &
SAMRequest_uri.
You might be able to go through with the login and get to the file you want
without having to deal with the javascript, but curl needs to start from the
top, by going to the first page, following the login link and logging in
correctly. *Then* you might be able to jump to the zipfile.
Ralph Mitchell
On 11/23/05, Jake Peavy <djstunks_at_gmail.com> wrote:
>
> OK, just having some (typical) problems downloading a file.
>
> The file is the zip listed on this page: http://www130.nortelnetworks.com/cgi-bin/eserv/cs/main.jsp?cscat=SWDETAIL&SoftwareOID=363185
>
>
> Through HTTPLiveHeaders I see a couple of different 200 and 302 return
> pages setting cookies. However, when I run curl as follows, I don't get any
> cookies in the jar.
>
> Could it be because of the javascript?
>
> TIA for any advice, but if nobody has the time/inclination to look into
> this I totally understand.
>
> -jp
>
> Curl command:
>
> curl -K curl.config
>
> curl.config:
>
> --verbose
> --location
> --remote-name
> --user-agent "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8)
> Gecko/20050511 Firefox/1.0.4"
> --referer " http://www130.nortelnetworks.com/cgi-bin/eserv/cs/main.jsp?cscat=SWDETAIL&SoftwareOID=363185
> "
> --cookie rfo.cookie
> --cookie-jar rfo.cookie
>
> --url "
> http://www130.nortelnetworks.com/cgi-bin/eserv/cs/main.jsp?level=6&category=10&subcategory=6&subtype=&SoftwareOID=363185&swRendId=191270&swFormat=zip"
>
> curl version:
>
> curl 7.12.3 (i386-pc-win32) libcurl/7.12.3 OpenSSL/0.9.7c zlib/1.2.1
> Protocols: ftp gopher telnet dict ldap http file https ftps
> Features: Largefile NTLM SSL libz
>
>
Received on 2005-11-24