Tags "multipartform-data" Result

How do I post a file over HTTP using the standard Python library

I am currently using PycURL to trigger a build in Jenkins, by posting to a certain URL. The relevant code looks as follows: curl = pycurl.Curl() curl.setopt(pycurl.URL, url) # These are the form fields expected by Jenkins data = [ ("name", "CI_VERSION"), ("value", str(version)), ("name", "integration.xml"), ("file0"

it1352 1 2019-05-21

iOS, upload file with multipartform-data

I would like to upload file to HTTP server. I do it like that right now: NSString *boundary = @"*****"; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; [request setURL:[NSURL URLWithString:@"http://someUploadScript.php"]]; [request setHTTPMethod:@"POST"]; NSString *contentType = [NSString stringWithFormat:@"multipart/form-dat

it1352 1 2019-05-21

Uploading zip file with POST/httpwebrequest in C#

I'm trying code from http://www.paraesthesia.com/archive/2009/12/16/posting-multipartform-data-using-.net-webrequest.aspx to do a POST through httpwebrequest. If I try this same code with a text file, it's fine. However if I do it with a zip file, then when re-download that file it's saying it's not a valid zip. I assume the zip portion is likel

it1352 0 2020-11-25

Jquery/Ajax Form Submission (enctype="multipart/form-data" ). Why does 'contentType:False' cause undefined index in PHP?

I have been trying to submit a form with enctype="multipart/form-data". I have this setting because the form will involve jpeg/png uploads once I have figured out the ajax submission for text inputs. the php works fine when referencing the script using action within the form html. the form data seems to be retrieved correctly by the below jquery

it1352 4 2019-05-07

RestEasy client framework file upload

Does anyone know how to create the RestEasy client side calls to upload a file using the following two interface signatures? I'm not finding any information at all. I know how to do it using the HttpClient but I'd like to use the client proxy to keep it consistent. @POST @Path("/upload") @Consumes("multipart/form-data") public void uploadFile(Mult

it1352 9 2019-05-17

Binary lines in multipart/form-data (file upload)

I'm writing a simple webserver in python that allows a user to upload a file using multipart/form-data. As far as I can tell, multipart MIME data is supposed to be line based. For instance, the boundary has to be at the beginning of a line. I can't figure out how binary data is handled in this regard. My client (Firefox) is not encoding it into 7b

it1352 0 2019-05-21

How to manually create multipart/form-data

We can use .formData() of Body mixin to return a FormData representation of data at Chromium (Chrome) 60 and Firefox 39 Relevant specifications: 7.2 The Multipart Content-Type Returning Values from Forms: multipart/form-data Errata Clarification of Body package data algorithm with bytes, FormData and multipart/form-data MIME type #392 Do

it1352 6 2019-05-22