in reply to Re: POSTing from one script to another
in thread POSTing from one script to another

My receiving script works fine so I'm not really debugging 2 scripts. I verified the receiving script using a normal HTML multipart/form-data form to post to it. The problem lies with the sending script, which I've been fiddling with for awhile now. I checked the server log: no requests for the 2nd script! Also, no 501 errors. This leads me to conclude that the request isn't even happening. It's dying right after or during the actual LWP/UA request. I read that the header "Client-Warning" is generated by LWP. If this is true, then perhaps there's really something wrong at the sender side? Perhaps a misconfig of the server?
  • Comment on Re: Re: POSTing from one script to another

Replies are listed 'Best First'.
Re: Re: Re: POSTing from one script to another
by matija (Priest) on May 05, 2004 at 13:19 UTC
    Ah, concentrating on the uploader, I see that you are specifying Content-type as 'form-data'.

    That is incorrect. It should be 'multipart/form-data'.

      Are you sure? I got the syntax straight from Gisle Aas's HTTP::Request::Common doc...
      Anyway I believe form-data and multipart/form-data are interchangable, since the request header shows "Content-type: multipart/form-data". So I assume both get transposed into the correct Content-type header.