curl-users
Re: Help needed to navigate through a webapplication
Date: Fri, 13 Jul 2007 16:49:15 +0530
Hi Daniel ,
Regarding the message 2 below I would like to give you a detailed
requirement of mine .
I want to download a file which is on the site . I have the set of JSP with
me .
I tried to hit the link directorty with cookie enabled and
is is as follows ...
CURL -b test -d
"filelocation=/usr/users/vftp/tdngine27/data/20070711/A000/0029&filename=20070711A00000290114"
http://rewrwernfdbxu1.usre.drewrb.com:8080/tdcm/servlet/securecafe.DownloadFile
This diverts me to the login page .
I also tried to login in the main portal using
CURL -b mycookie -d "username=XXXX&password=XXXXXX"
http://rewrwernfdbxu1.usre.drewrb.com:8080/tdcm/portal.jsp?submit=1
and this also failed . I know that the portal uses the cookie to keep the
session .
There is also a validation in the jsp as
((String)session.getAttribute("CustomerID")
if its null it diverts me to the portal main page .. So can I set this
attribute CustomerId in curl ???As its not getParameter...
Waiting for the reply ..
Dhiren
> Message: 2
> Date: Fri, 13 Jul 2007 10:20:45 +0530
> From: "Dhiren Patra" <dhiren.patra_at_gmail.com>
> Subject: Help needed to navigate through a webapplication
> To: curl-users_at_cool.haxx.se
> Message-ID:
> <89c371ab0707122150re9038f5sdcae88932617c1a8_at_mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all ,
> I am new to the curl command line utility . I want to simulate a file
> download workflow in a web application .
> I have been successful in login in the portal . But I am stuck while
> navigating to the particular download tab and
> then finally downloading the file .
> When I use the same download URL in the browser it gives error but it does
> not give error from the select file option in the file list page ..
> I guess the file download link should work in the new browser window
> address bar so that the same link can be used by curl to simulate.
> Regards,
> Dhiren
>
>
>
>
>
>
> --
> DHIREN K PATRA
> SENA Systems.
> 9970164645
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://cool.haxx.se/pipermail/curl-users/attachments/20070713/c0cb0252/attachment-0001.htm
>
> ------------------------------
>
> Message: 3
> Date: Fri, 13 Jul 2007 10:32:58 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> Subject: Re: Help needed to navigate through a webapplication
> To: the curl tool <curl-users_at_cool.haxx.se>
> Message-ID: <Pine.LNX.4.64.0707131032060.14524_at_yvahk3.pbagnpgbe.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Fri, 13 Jul 2007, Dhiren Patra wrote:
>
> > I am new to the curl command line utility . I want to simulate a file
> > download workflow in a web application .
>
> Since you didn't include any specific details at all, I can only direct
> you to
> the generic guidelines on how to do this stuff:
>
> http://curl.haxx.se/docs/httpscripting.html
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
>
> ------------------------------
>
> _______________________________________________
> curl-users mailing list
> curl-users_at_cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
>
>
> End of curl-users Digest, Vol 23, Issue 9
> *****************************************
>
-- DHIREN K PATRA SENA Systems. 9970164645Received on 2007-07-13