Error HTTP 404

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manicmax
    New Member
    • Jan 2007
    • 11

    Error HTTP 404

    Hi x-perts,

    I am new to perl programming and am getting an error everytime when i am calling a perl script on action of the form.like this

    <form action="https://someurl/cgi-bin/abc-login.pl?servle tLoc=/servlets/iclientservlet/sadf/&cmd=login&lang uageCd=ENG" method="post" id="login" name="login" autocomplete=of f onSubmit="signi n(document.logi n)">
    the signin function is given below:

    function signin(form)
    {
    var now=new Date();
    form.timezoneOf fset.value=now. getTimezoneOffs et();
    return ;
    }

    although i have put the perl script abc-login.pl in to CGI-BIN folder.
    but i was not sure about the CGI-BIN folder,so i searched for cgi-bin folder and found 2 folders and i put perl script in both the folders.

    Please tell me where am doing mistake?

    Thanks,
    Max
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    this is really not a perl question. The correct cgi-bin to use is the one in the public_html or www folder. If you have the script in the cgi-bin folder, and your borwser gets a 404 error, make sure you are spelling the name of the script correctly, using upper and lower case characters as the case may be.

    Can you reach the script if you type the url directly into the browser instead of trying to reach it using the form code?

    Comment

    • manicmax
      New Member
      • Jan 2007
      • 11

      #3
      thanks for ur quick reply kevin

      the url of the page is

      https://someserver.abc. com/psp/FSTST/?cmd=login&lang uageCd=ENG

      But here we are not following the conventional way of pointing the default page.I am telling u because i searched for the virtual directory but could not find it I mean to say I didnt find the psp folder anywhere. All i got is a folder named FSTST and there is a file named signin.html in this folder and in tht file we are calling a perl script like this

      <form action="https://someserver.abc. com/cgi-bin/hr-login4.pl?servl etLoc=<%=servle tLoc%>&cmd=logi n&languageCd=<% =languageCd%>" method="post" id="login" name="login" autocomplete=of f onSubmit="signi n(document.logi n)">

      there is no folder like www or html_default.

      plz let me know whats going on.

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #4
        I don't know what the problem is based on your description. If you have technical support I suggest you ask them to help resolve the issue. Sorry I can't be of more help.

        Comment

        • manicmax
          New Member
          • Jan 2007
          • 11

          #5
          thanks kavin.I am using weblogic8. Is there any specific directory for perl cgi script for weblogic8

          Comment

          • KevinADC
            Recognized Expert Specialist
            • Jan 2007
            • 4092

            #6
            Originally posted by manicmax
            thanks kavin.I am using weblogic8. Is there any specific directory for perl cgi script for weblogic8

            Sorry, I've never even heard of weblogic8.

            Comment

            Working...