Code Monkey home page Code Monkey logo

http-post's People

Contributors

abejfehr avatar gajjargaurav avatar samt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

http-post's Issues

Include tests

I need to get some tests up for this... eventually it will happen

Content-Type header not being sent with files

It would be nice to be able to send the Content-Type header with each file, even though I've yet to test this with a server that rejects the request or mutilates the file due to its absence.

Posting larger files will not work

The current implementation loads the entire file into memory and tosses it to req.write() at once. This will fail for larger files. Some sort of buffered read to req.write() needs to be implemented.

Is it still working for send files?

I tryed

var req = http.post(options, authParams, {param: 'file', path: '/tmp/test.zip'}, reqCallback);

On server, I can see that the request itself is working, but the file is not getting there.

I used the "request" module and it worked, it sent the file, but I really would prefer to use the "http-post" module, since "request" adds almost 3MB of dependencies to my project.

Am I doing something wrong?

https support?

This doesn't seem to support https, it would be great if you wanted to add that! I may do a PR in the coming weeks if I have the time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.