Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How can I use wget to get the result of jsp page

Reply
Thread Tools

How can I use wget to get the result of jsp page

 
 
Yang
Guest
Posts: n/a
 
      04-18-2007
I have a jsp page that takes one parameter say: http://www.a.com/a.jsp?id=1

and use different id to generate different pages,
now I want to get the results from that and I use



>> wget "http://www.a.com/a.jsp?id=1"



unfortunately, I can only get the source code of a.jsp, which is
useless to me.
Is there any other methods for doing this?

 
Reply With Quote
 
 
 
 
Yang
Guest
Posts: n/a
 
      04-18-2007
On Apr 18, 8:04 am, Michele Dondi <bik.m...@tiscalinet.it> wrote:
> On 17 Apr 2007 19:25:21 -0700, Yang <ysongfina...@gmail.com> wrote:
>
> >I have a jsp page that takes one parameter say:http://www.a.com/a.jsp?id=1

>
> So far so fine.
>
> >and use different id to generate different pages,

>
> Typical.
>
> >now I want to get the results from that and I use

>
> Reasonable.
>
> >>> wget "http://www.a.com/a.jsp?id=1"

>
> Common. I use that too. At some time I was dubbed "the wgetter"...
>
> >unfortunately, I can only get the source code of a.jsp, which is
> >useless to me.

>
> I don't see why one should do such a stupid thing, but if the damned
> thing works from a browser and not with wget, it may have to do with
> the useragent identifier. Try playing with -U.
>
> >Is there any other methods for doing this?

>
> Oh, c'mon! Do you realize that this is a ng dedicated to the Perl
> programming language. I still fail to see the actual Perl question
> here, so I'm inventing one for you and answering it along the lines
> of: use LWP.
>
> Michele
> --
> {$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
> (($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
> .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
> 256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,



That is actually what I did, using LWP:Simple and use "get $url", the
same thing happened.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to use wget to get information of a jsp page Yang Java 6 04-20-2007 02:39 PM
Web get command (wget) to download all icons/pics on a web page (too large or too small) barb Digital Photography 5 08-04-2006 07:06 PM
1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds Michael Tan Ruby 32 07-21-2005 03:23 PM
How to get the html output of a local JSP page from my Java code, or use a JSP as an HTML templates. DigitalUncle Java 0 11-02-2004 05:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57