Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

While Uploading html file ,“WebKitFormBoundary ” are added at the top of page using perl. How to prevent this?

by arvindbhardwaj2003 (Initiate)
on Sep 16, 2019 at 04:43 UTC ( #11106221=perlquestion: print w/replies, xml ) Need Help??

arvindbhardwaj2003 has asked for the wisdom of the Perl Monks concerning the following question:

While uploading a an HTML file, ------WebKitFormBoundarywPhRMi5J1WMEAybu data------WebKitFormBoundarywPhRMi5J1WMEAybu-- get added before tag, causing to display the above when we open the HTML page. i am using LWP with perl to uplaod the file:
my $req = POST( $url, Authorization => 'Basic ' . encode_base64('admin' . ':' . '*****') +, Content_Type => 'multipart/form-data', 'Content' => { 'file_to_upload' => ["$location"] } );
Can someone explain how to get rid of WebKitFormBoundary in uploaded file ?
  • Comment on While Uploading html file ,“WebKitFormBoundary ” are added at the top of page using perl. How to prevent this?
  • Download Code

Replies are listed 'Best First'.
Re: While Uploading html file ,“WebKitFormBoundary ” are added at the top of page using perl. How to prevent this?
by Anonymous Monk on Sep 16, 2019 at 07:02 UTC

    Can someone explain how to get rid of WebKitFormBoundary in uploaded file ?

    either

    use module/code which understands HTTP / formdata

    or upload using a format your server expects, something that is not formdata

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11106221]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2019-10-14 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?