Solved

Perl on Novell Netware problem

Posted on 1998-07-07
10
162 Views
Last Modified: 2010-03-05
I am using a script that is written for unix to run on Netware server. I have everything working except that the URL for the page being hit is truncated.  Can anyone tell me what is causing this. The script is freeware and can be seen at http://www.xav.com/scripts/axs/index.html
0
Comment
Question by:GaryZ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 5

Accepted Solution

by:
b2pi earned 200 total points
ID: 1208303
You're not being very specific.  What have you tried so far as far as debugging?  _WHERE_ is the page being truncated?

I also note that you're running on a Netware server?  Have you investigated whether you have enough environment space?
0
 

Author Comment

by:GaryZ
ID: 1208304
The complete URL is being truncated, however only part of the time.

For instance I will have an entry as www.domain.com/ind and also an entry for www.domain.com/indi.htm and they are the same. It does not seem to matter what length the URL is as some of the longer names show correct in the log where as a shorter name is truncated.
0
 
LVL 5

Expert Comment

by:b2pi
ID: 1208305
no\\No, I'm not asking what is being truncated, but rather _WHERE_ is it being truncated (the url you list has two or three programs.  Which one is truncating the url?  Where in the code does the url appear to be truncated?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:GaryZ
ID: 1208306
The URL is being truncated in AX.CGI which is the program that creates the database.
0
 
LVL 5

Expert Comment

by:b2pi
ID: 1208307
OK.  Let's assume that you don't have anything in the custom section.... Add the following lines for debugging: (lines that are already there are marked with a leading '>')

>$logfile = 'log.txt';
>$domain = 'http://www.xav.com';
>$header = "Content-type: text/html\n\n";
 $debug = 1;
 if ($debug) {
     ## Open up a debug log file
     open (DEBUG,  ">>debug.txt");
 }

------- next chunk
> $logline = "|$ENV{'REMOTE_HOST'}|$ENV{'REMOTE_ADDR'}|";
  if ($debug) {
      print DEBUG "Got Referring page as $ENV{HTTP_REFERER} from $logline\n";
  }
> $ENV{'HTTP_REFERER'} =~ s/\|//g;
  if ($debug) {
      print DEBUG "Referring page now $ENV{HTTP_REFERER}\n";
  }
> $logline .= "$ENV{'HTTP_REFERER'}|";


------- next chunk
> print LOG $logline;
> close(LOG);
close(DEBUG);

------------ end of chunks

By the way, I'll repeat my suspicion that your environment isn't large enough.  I'm not overly sure how the novell server works, but that's what your description indicates.

Take a look at the debug log, and find some instances where there is truncation.  If there is no truncation in the debug log, you'll have to look more closely at the server.
0
 
LVL 5

Expert Comment

by:b2pi
ID: 1208308
Did you get anywhere with the debugging?
0
 

Author Comment

by:GaryZ
ID: 1208309
I will be coding the debug statements today and give them a try.
We have gone thru the Netware manual but cannot find an environment statement anywhere. We are going to research that some more.

It is real hard to find someone that knows anything about Netware.
0
 

Author Comment

by:GaryZ
ID: 1208310
Ran debug.

The code you gave me displayed the domain name of the person coming into the site. What I needed was the URL of the hit.

I changed HTTP_REFERER to DOCUMENT_URI which gave me the following:

/produ  which should be /products.htm
/compa  which should be /company.htm

0
 
LVL 5

Expert Comment

by:b2pi
ID: 1208311
So it was truncated in BOTH locations?  That does indeed sound like a configuration problem in your server :(
0
 

Author Comment

by:GaryZ
ID: 1208312
I am going to go ahead and close this out, thanks for your help.
We have concluded that this is probably a config issue, however, no one knows here knows how to change the config, and the company tthat installed the server is of no real help
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question