multipart

Is it possible to send mixed txt/html mails with the php mail function?

I'm doingsome tests, I tried two solutions so far: The first one sends the message inside the headers (message parameter of the mail() function is empty) [] $boundary = "nextPart"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "From: ".$from_name." <".$from.">\r\n"; $headers .= "Content-Type: multipart/alternative; bo...

Parsing multipart/mixed responses in jQuery

Good day. I'm new to jQuery, and have a passing familiarity with javascript, having spent most of my time on the server side. My interest is in posting in the browser a multipart/form-data form object consisting of one text field and one file. In response, the server returns a multipart/mixed response consisting of one part html or js...

can HTTP multipart/mixed xml part be converted to a Hash when mixed with other parts.

The question is just above the last code snippet. Thank you. (environment details are the end ) posts_controller.rb class PostsController < ApplicationController def create @post = Post.new(params[:post]) respond_to do |format| format.xml { render :xml => @post.to_xml(:include => [ :assets])} end end posts.rb class P...

Uploading an image from android to a PHP server

Hi , I'm trying to upload an image from android to a PHP server by using MultiPartEntity but i have trouble to find the source of the problem , the progress dialog steel downloading without providing any response here my code : public String postFunction(String s_v1, String s_v2, String s_v3) throws ParseException, ClientProtocolExc...

How are REST Array Parameters handled over MultiPart Form and XMLRPC?

Im using an API and one of the ways this API works is it lets you declare an array of parameters for some calls. The way they describe the rest request looks like this: http://example.com/?params[]=option1&amp;params[]=option2 This declares 2 array parameters in the array of parameters (option1 and option2) How would these be sent ov...

REST client HTTP multipart support

Hi, I have a 3-rd party REST domain that requires doing HTTP multipart POST requests in order to create/update resources. Moreover, getting resource representation is done by a GET request where the response is expected to be a multipart HTTP (the multipart HTTP messages are used for 2 main purposes: 1 - attaching binary files to the res...

Android Multipart Upload

As part of my Android app, I'd like to upload bitmaps to be remotely stored. I have simple HTTP GET and POST communication working perfectly, but documentation on how to do a multipart POST seems to be as rare as unicorns. Furthermore, I'd like to transmit the image directly from memory, instead of working with a file. In the example ...

Is this a mal-formed http request from an iPad, which kills Node.js multipart parser

The below code is used in an iPad app to send an HTTP request to a Node.js web server, which produces the following error, but works fine w/ a regular HTML+browser form. The server is Node.js + formidable which has a multipart parser that only dies on this line of code with this error: message: parser error, 0 of 29162 bytes pars...