Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Does it support multi part post? #15

Closed
somnathpanja opened this Issue · 1 comment

2 participants

@somnathpanja

Does it support multi part post? If yes how can I achieve it? Can you please provide one example?

@jiangmiao jiangmiao closed this in 9c1cbb8
@jiangmiao
Owner

Multipart post is supported. Here is the example:

curl('127.0.0.1/upload.php', {
    MULTIPART: [
        {name: 'file', file: '/file/path', type: 'text/html'},
        {name: 'sumbit', contents: 'send'}
    ]
}, function(e) {
    console.log(e);
    console.log(this.body);
    this.close()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.