Programatically posting a file

Discussion in 'Perl Misc' started by b_naick@yahoo.ca, Aug 16, 2005.

  1. Guest

    I have a script which is called when a form is submitted. The form
    takes as input a file.

    I need to save the file locally and then make an HTTP POST request to
    an ASPX page on another server. This post request needs to contain the
    file I just saved locally.

    How do I go about it? The ASPX page is designed to accept a form which
    is "POST"ed.

    How can I use Perl to manufacture this POST request to the ASPX page?

    BTW: My Perl knowledge is very limited..

    Thanks.

    Bijoy
     
    , Aug 16, 2005
    #1
    1. Advertising

  2. Brian Wakem Guest

    wrote:

    > I have a script which is called when a form is submitted. The form
    > takes as input a file.
    >
    > I need to save the file locally and then make an HTTP POST request to
    > an ASPX page on another server. This post request needs to contain the
    > file I just saved locally.
    >
    > How do I go about it? The ASPX page is designed to accept a form which
    > is "POST"ed.
    >
    > How can I use Perl to manufacture this POST request to the ASPX page?
    >
    > BTW: My Perl knowledge is very limited..
    >
    > Thanks.
    >
    > Bijoy



    Read:
    http://cpan.uwinnipeg.ca/htdocs/libwww-perl/LWP/UserAgent.html
    &
    http://cpan.uwinnipeg.ca/htdocs/libwww-perl/HTTP/Request/Common.html


    --
    Brian Wakem
    Email: http://homepage.ntlworld.com/b.wakem/myemail.png
     
    Brian Wakem, Aug 16, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve C. Orr [MVP, MCSD]

    Download file programatically?

    Steve C. Orr [MVP, MCSD], Apr 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    376
    Xavier MT
    Apr 14, 2004
  2. alanb
    Replies:
    2
    Views:
    534
    alanb
    Apr 23, 2004
  3. =?Utf-8?B?Um9iZXJ0IEJ1cmRpY2sgW2VNVlBd?=

    Problem Programatically Posting to an ASPX PAge

    =?Utf-8?B?Um9iZXJ0IEJ1cmRpY2sgW2VNVlBd?=, Nov 8, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    380
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Nov 8, 2006
  4. AmitKu
    Replies:
    7
    Views:
    515
    John Timney \(MVP\)
    Jan 8, 2007
  5. Grey Alien

    POSTing a form programatically

    Grey Alien, Jul 12, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    411
    Grey Alien
    Jul 12, 2007
Loading...

Share This Page