The advice that you received from me back in November still applies. The advice you got in how to upload a file to a secured website? also applies.

You still don't tell us how it "doesn't work". This is a common approach to errors, but it won't get you far, because we prefer to use your telepaths for controlling the minds of the world leaders instead of reading the minds of programmers.

Looking at the code you post, I only see little resemblance to the code in the synopsis of HTTP::Request::Common:

my $filename = "MyDoc.csv"; my $file = "C:\\" . $filename; $request=POST $upload_url,[ Content_Type => 'multipart/form-data', $file, $file, # what is that suppo +sed to be? Content => [ 'upload' => [$file,$filename]], # please explain thi +s line! submit => 'Upload', Upload => 1, theFile=>$file # ... and this line +too ];

Again, you should likely use WWW::Mechanize instead, which encapsulates file uploads conveniently for you. But you were told that already.

As a different approach, I recommend to use a network sniffer to find out the differences in what the browser sends and what your script sends. But then again, you were told that already, as well.


In reply to Re: Help required regarding HTTP::Request::Common, File upload by Corion
in thread Help required regarding HTTP::Request::Common, File upload by KarthikK

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.