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
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
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
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
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
I am trying to create a simple Grails 3 project and got stuck with something really simple. So I want my data source properties to come from VM options that I set in my IntelliJ IDE. Before in Grails 2.x, I just used to do something like:
environments {
development{
//Database connection properties
def dbserver = System.propert
it1352
0
2019-05-19
I'm trying to a upload file (or multiple files) to my servlet, which is using Apache file-upload to handle and get post-ed files.
All is going well and the file is send and recieved, when I use the following code.
DefaultHttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost("http://myservice.com/servlet");
MultipartEntity ent
it1352
0
2019-05-17
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
I need to create the uploaded structure of data as :
{
"authentication_token":"some_token",
"user": {
"fname": "fname",
"lname": "lname",
"avatar": "image-file"
"location": "location"
}
}
The "avatar" is actually an Image File (profile image of the user).
I've tried
it1352
8
2019-05-07
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