use WWW::Mechanize; use LWP::UserAgent; use LWP::Authen::Ntlm; use Storable; use DBI; use FileMoveDMS2DStage_Parm; use LWP::Debug qw(+); my $URL_Parm_DMS="https://sharepoint.com"; &Parm_file::InitEnv();#parameter file for credentials# $mech = WWW::Mechanize->new(autocheck=>1,keep_alive=>1); $mech->agent_alias( 'Windows IE 6' ); $mech->credentials("sharepoint.com:443",'',$ENV{'UserId_Parm_DMS'}, $E +NV{'Password_Parm_DMS'}); $mech->get($URL_Parm_DMS); my $html = $mech->content; @names = qw(file1); # COUNTS EACH ELEMENT OF THE ARRAY $n = 0; $mech->get($urlFile); $mech->save_content($filename);
I have tried with this code to connect. But if i get the file name from share point my work is very easy. But some how i am not able to get idea to know the file name. I would really appreciate he you guys could help me on this.

20100409 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips


In reply to Re^3: to get file names and timestamps from sharepoint by vbagavan
in thread to get file names and timestamps from sharepoint by vbagavan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.