Stream to POST, PUT request
See original GitHub issueHi is it possible to pipe a stream to POST, PUT request like in request
package?
fs.createReadStream('file.json').pipe(request.put('http://mysite.com/obj.json'))
Reference: https://github.com/request/request#streaming
Issue Analytics
- State:
- Created 6 years ago
- Reactions:17
- Comments:16 (1 by maintainers)
Top Results From Across the Web
python - requests - how to stream upload - partial file
Based off Greg's answers to my questions I think the following will work best: First you'll need something to wrap your open file...
Read more >Advanced Usage — Requests 1.2.3 documentation
Requests supports streaming uploads, which allow you to send large streams or ... full range of HTTP verbs: GET, OPTIONS, HEAD, POST, PUT,...
Read more >HTTP Request Methods – Get vs Put vs Post Explained with ...
In this article, we'll be discussing the get, put, and post HTTP methods. You'll learn what each HTTP method is used for as...
Read more >Streaming requests with the fetch API - Chrome Developers
This shows how you can stream data from the user to the server, and send data back that can be processed in real...
Read more >Processing REST API requests - IBM
To access information from IBM® Streams by using the REST API, your application must send a valid HTTP request. The application must then...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was able to upload a file read stream using axios by also adding a Content-Length header
But that might have been a GitHub-specific requirement. I don’t know a different way to test it
I’ve been able to get axios to stream GET -> PUT / POST like so:
GET -> PUT:
GET -> POST: