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

Discussion in 'Perl Misc' started by Yang, Apr 18, 2007.

  1. Yang

    Yang Guest

    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?
    Yang, Apr 18, 2007
    #1
    1. Advertising

  2. Yang

    Yang Guest

    On Apr 18, 8:04 am, Michele Dondi <> wrote:
    > On 17 Apr 2007 19:25:21 -0700, Yang <> 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.
    Yang, Apr 18, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Yang
    Replies:
    6
    Views:
    3,680
  2. JuergenRiemer

    get wget log message

    JuergenRiemer, Feb 13, 2009, in forum: Python
    Replies:
    1
    Views:
    1,019
    JuergenRiemer
    Feb 13, 2009
  3. Michael Tan
    Replies:
    32
    Views:
    960
    Ara.T.Howard
    Jul 21, 2005
  4. Replies:
    2
    Views:
    122
    Peter J. Holzer
    Jul 21, 2007
  5. Replies:
    0
    Views:
    92
Loading...

Share This Page