User Profile

Collapse

Profile Sidebar

Collapse
Freedolen
Freedolen
Last Activity: Dec 15 '08, 01:02 PM
Joined: Mar 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Freedolen
    replied to Using Credentials on LWP
    in Perl
    I supposed to use LWP module only, as this script needs to run in different server and LWP is distributed with Perl installation and am not allowed to install/use new modules. Is it possible to do using LWP module?

    Regards,
    N.Srinivasan...
    See more | Go to post

    Leave a comment:


  • Freedolen
    started a topic Using Credentials on LWP
    in Perl

    Using Credentials on LWP

    Hi,

    I want to download a pdf file from password protected website. Using browser(IE/FireFox) when i click the pdf link it shows a window, which asks 'username' and 'password'. I want to automate the process using LWP in perl. I have used both 'authorization_ basic' and 'credentials', but doesn't work.
    My code:

    Code:
    use strict;
    use LWP::UserAgent;
    use HTTP::Request::Common;
    use HTTP::Cookies;
    ...
    See more | Go to post

  • Since i didn't get reply for the past four days, i have a doubt that my question is not understandable? or shall i post to some other forums(i am asking this b'cos i saw from some other posts as 'dont post the same question to many forums')

    -Freedolen
    See more | Go to post

    Leave a comment:


  • Freedolen
    started a topic How to login website using LWP and HTTP modules?
    in Perl

    How to login website using LWP and HTTP modules?

    Hi All,

    I had a perl script which is used to login in a web page, but it gives the error as
    "301 Moved Permanently". What does this means and how can it be rectified?
    Can anyone help on this?

    Code Snippet:
    [CODE=perl]
    use HTTP::Cookies;
    use HTTP::Request;
    use HTTP::Request:: Common qw(POST);
    use URI::URL;
    use HTML::LinkExtor ;
    use LWP 5.64;
    ...
    See more | Go to post
    Last edited by miller; Oct 18 '07, 08:13 PM. Reason: Code Tag and ReFormatting

  • Freedolen
    replied to Need help in Frames
    in Perl
    Hi,

    I have solved the issue by adding 'target' and 'name' properties in HTML coding

    HTML Modifications:
    <form method="post" action="http://localhost:8080/cgi-bin/Searchengines.p l" target="resultf rame">
    HTML Code Modifications in Perl File:
    print "<frame src='http://www.hakia.com/?q=".$searchter m."' name='resultfra me'/>";
    print "<frame...
    See more | Go to post

    Leave a comment:


  • Freedolen
    started a topic Need help in Frames
    in Perl

    Need help in Frames

    Hi

    1. I found a website "http://www.gahooyoogle .com" which is a search engine and fetches result from both yahoo and Google.
    2. tried to develop a similar one but with more simpler and i choose(Hakia, AltaVista and Google) as my search engines. I developed a html(MySearchPa ge.html) with textbox and submit button, when search term entered and clicking on submit button it calls a perl file.
    3. In perl file there is a Html code,
    ...
    See more | Go to post
    Last edited by miller; Aug 30 '07, 01:11 AM. Reason: Code Tag and ReFormatting

  • Freedolen
    started a topic CGI and Frames
    in Perl

    CGI and Frames

    Hi

    1. I found a website "http://www.gahooyoogle .com" which is a search engine and fetches result from both yahoo and google.

    2. I tried to develop a similar one but with more simpler and i choose(Hakia, AltaVista and Google) as my search engines. I developed a html(MySearchPa ge.html) with textbox and submit button, when search term entered and clicking on submit button it calls a perl file.

    3....
    See more | Go to post

  • Freedolen
    started a topic LWP::Simple -- Getting Filename
    in Perl

    LWP::Simple -- Getting Filename

    Hi All,

    With the below code i am able to get the contents, but i need to get the filename whether it is 'index.html' or 'index.htm' or 'google.html'. How can i get it?

    use strict;
    use LWP::Simple;
    my $htmlcontent = get("http://www.google.co.i n");
    print $htmlcontent;

    Thanks in Advance,
    Freedolen
    See more | Go to post

  • What is the difference between 'load data' and 'insert' command?

    Hi,

    I have checked with some sample data and found inserting of data using 'insert command' takes more time than using 'load data' command to load data from another file. What is the process difference between these two commands. I have another question, when i insert data using load data command from external file is there anyway to get how much rows inserted at the time of loading the data.

    Regards,
    Freedol...
    See more | Go to post

  • Freedolen
    started a topic Need guidance to choose datatype

    Need guidance to choose datatype

    Hi,

    What datatype can i choose for a column to store the unknown length of value. The value may be characters, numbers, punctuations(sp ecial characters). For ex: i had a column for 'description', the value may be one word, one line or multiple words. I have created a column with datatype of 'Description Varchar(300)' but when the length of value exceeds 300 it reports error as 'Data too long for column 'description''. Guide me to make...
    See more | Go to post

  • Freedolen
    started a topic What does '::' denotes in TitleBar?

    What does '::' denotes in TitleBar?

    I found '::' in the start of TitleBar on some web pages.
    What does '::' this mean?
    See more | Go to post

  • Freedolen
    replied to comparison of 2 text files
    in Perl
    You can use any pre-defined modules such as Text::Diff or you can modify/use the following coding

    [CODE=perl]
    use strict;
    use warnings;

    my $firstfile = 'test1.txt';
    my $secondfile = 'test2.txt';

    open(F1, $firstfile) or die "Unable to open $firstfile $!\n";
    open(F2, $secondfile) or die "Unable to open $secondfile $!\n";

    my @firstfile = <F1>;
    ...
    See more | Go to post
    Last edited by miller; Jun 3 '07, 09:06 PM. Reason: Code Tag and ReFormatting

    Leave a comment:


  • Freedolen
    replied to UI with perl
    in Perl
    And the above code also doesn't get compiled to me, without adding '-' for each of the options and here is the corrected code.

    [CODE=perl]use Tk;
    $top = MainWindow->new();
    $top->title("Simple" );
    $foo = $top->Label(
    -text =>'hello',
    -anchor =>'n',
    -relief =>'groove',
    -width =>10,
    -height =>3,
    );
    $foo->pack();...
    See more | Go to post
    Last edited by miller; May 29 '07, 07:13 AM. Reason: Code Tag and ReFormatting

    Leave a comment:


  • Freedolen
    replied to Getting FieldNames from DBI Module
    in Perl
    Hi Miller,

    Thanks for your work, but MS-Access doesn't supports 'DESC' statement. It throws error message as "Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.".

    I have Googled and got the following coding to get the column names from table. But beyond this i need to know is there any one liner available in DBI as 'FieldNames()' in ODBC to get the column names.
    ...
    See more | Go to post

    Leave a comment:


  • Freedolen
    started a topic Getting FieldNames from DBI Module
    in Perl

    Getting FieldNames from DBI Module

    Hi,

    I am using DBI module to interact with MS-Access Database. I need to know in DBI module, is there any similar method as 'FieldNames()' from Win32::ODBC to get the Field names from MS-Access table.

    Thanks in Advance,
    Freedolen
    See more | Go to post

  • Freedolen
    started a topic Install CPAN Modules in Windows
    in Perl

    Install CPAN Modules in Windows

    Hi,

    I am trying to install CPAN modules in Windows 2000, but i am getting error as "Can't locate object method "make" via package "PACK001" at C:/Perl/lib/ExtUtils/MM_Win32.pm line 131."
    I have also copied nmake.exe to my C:\WINNT
    My requirement is to install XML::LibXML and this module not found in "ppm".

    OS: Windows 2000
    Perl: 5.8.3

    Regards,...
    See more | Go to post

  • Freedolen
    started a topic Getting Tiff Image Properties
    in Perl

    Getting Tiff Image Properties

    Hi,

    Iam new to this forum.
    I need to find the given TIFF image is in CMYK or RGB.

    Though i have checked with Image::Magick, and used:
    Code:
    my $img = new Image::Magick;
    $img->Read("Sample.tif");
    my ($type) = $img->Get("type");
    print $type;
    It displays "TrueColor" and "Palette" for RGB and "ColorSeparatio n" for CMYK...
    See more | Go to post
No activity results to display
Show More
Working...