chiburashka has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Real code
by jeffa (Bishop) on Jun 25, 2004 at 15:38 UTC

    What do you mean by "real code"? The actual .asp script itself? Not going to happen unless you have an FTP or SSH account on their system and are authorized to access those files. However, if you are trying to write a bot to access that website, then you might have better luck with WWW::Mechanize which transparently handles cookie sessions for you. You will need to research the site you are trying to crawl first, of course. Some sites are very hard to automate.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
Re: Real code
by davido (Cardinal) on Jun 25, 2004 at 15:49 UTC

    The answer (thankfully) is that you can't. A properly configured webserver isn't going to let you download the code of its Active Server Pages, anymore than it would let you see a Perl based CGI script. And if it did, that server would be exposing itself to a serious security breech. Script-kiddies and serious do-bad'ers would have access to all sorts of hints and clues on how to break in.


    Dave

Re: Real code
by hardburn (Abbot) on Jun 25, 2004 at 15:38 UTC

    What "code" do you want? The HTML? The ASP code?

    If HTML, you need to tell us what the error is.

    If you want the ASP code, give up. Servers do not (and should not) give the raw source code to the programs they run.

    ----
    send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

Re: Real code
by talexb (Chancellor) on Jun 25, 2004 at 16:47 UTC

    You're asking for assistance for a problem you are having, and we are willing to help you. However, without telling us what error you're encountering, we cannot help you. If you have to look at the code that is producing the problem, do that. If you don't have access to the code, try to figure out the problem without the code.

    Somehow I'm reminded of my stepsons who sometimes ask me, "What time is it?", and my stock response is "I don't know -- I can't tell time." The subtext is, Figure it out yourself!!! -- it even happened this morning: Adrian stumbled out of his room, wearing a watch, and asked me the time. After I gave him my stock response, he lifted up his arm and checked his watch. Then he knew what time it was. Why did he care? I don't know -- his last day of school was yesterday -- he has nothing on his schedule for weeks.

    I know this sounds like a rant from an old guy -- hey, maybe it is. Please, exercise your grey matter a little before posting a vague question. Take your problem absolutely as far as you can. I've done that, gotten stuck, then found the answer as I was writing up the question. Yes. It can happen. If you're still stuck after all that effort, we'll be pleased to help you out. Just expend more effort to start with. Please.

    Alex / talexb / Toronto

    Life is short: get busy!

Re: Real code
by Fletch (Bishop) on Jun 25, 2004 at 17:25 UTC
Re: Real code
by heroin_bob (Sexton) on Jun 25, 2004 at 17:42 UTC
    Just out of lingering curiousity... are you developing this app and you need help figuring out your problem? Or are you just REALLY interested as to why a page you're surfing on has an error?

    Whatever the case, LWP won't help. The only way you'll get the source is to have permission, and guessing from this writeup, I don't think you do. Sorry I couldn't be of service!

    If you're ever lost and need directions, ask the guy on the motorcycle.