We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A POST request with a FormData object having a file binary in it results in the following:
curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -H "content-type:multipart/form-data; boundary=--------------------------465935617733580427703067" --data '{"_overheadLength":412,"_valueLength":10,"_valuesToMeasure":[{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":false,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"paused":true,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrain":0,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{"error":[null,null]},"_eventsCount":3,"path":"/tmp/1555512197006-en-GB-2-hello-world.txt","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false}],"writable":false,"readable":true,"dataSize":0,"maxDataSize":2097152,"pauseStreams":true,"_released":false,"_streams":["----------------------------465935617733580427703067\r\nContent-Disposition: form-data; name="sourceLocale"\r\n\r\n","it-IT",null,"----------------------------465935617733580427703067\r\nContent-Disposition: form-data; name="targetLocale"\r\n\r\n","en-GB",null,"----------------------------465935617733580427703067\r\nContent-Disposition: form-data; name="documentContent"; filename="1555512197006-en-GB-2-hello-world.txt"\r\nContent-Type: text/plain\r\n\r\n",{"source":{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":false,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"paused":true,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrain":0,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{"error":[null,null]},"_eventsCount":3,"path":"/tmp/1555512197006-en-GB-2-hello-world.txt","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false},"dataSize":0,"maxDataSize":null,"pauseStream":true,"_maxDataSizeExceeded":false,"_released":false,"_bufferedEvents":[{"0":"pause"}],"_events":{},"_eventsCount":1},null],"_currentStream":null,"_boundary":"--------------------------465935617733580427703067"}' http://localhost:8080/dummyservice
Would you consider using the -F 'param=value' flag and the @ notation for file uploads? Example:
-F 'param=value'
@
curl -s 'https://localhost:8080' -F 'param=key' -F 'file=@"files/hello world.txt"'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A POST request with a FormData object having a file binary in it results in the following:
curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -H "content-type:multipart/form-data; boundary=--------------------------465935617733580427703067" --data '{"_overheadLength":412,"_valueLength":10,"_valuesToMeasure":[{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":false,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"paused":true,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrain":0,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{"error":[null,null]},"_eventsCount":3,"path":"/tmp/1555512197006-en-GB-2-hello-world.txt","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false}],"writable":false,"readable":true,"dataSize":0,"maxDataSize":2097152,"pauseStreams":true,"_released":false,"_streams":["----------------------------465935617733580427703067\r\nContent-Disposition: form-data; name="sourceLocale"\r\n\r\n","it-IT",null,"----------------------------465935617733580427703067\r\nContent-Disposition: form-data; name="targetLocale"\r\n\r\n","en-GB",null,"----------------------------465935617733580427703067\r\nContent-Disposition: form-data; name="documentContent"; filename="1555512197006-en-GB-2-hello-world.txt"\r\nContent-Type: text/plain\r\n\r\n",{"source":{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":false,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"paused":true,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrain":0,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{"error":[null,null]},"_eventsCount":3,"path":"/tmp/1555512197006-en-GB-2-hello-world.txt","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false},"dataSize":0,"maxDataSize":null,"pauseStream":true,"_maxDataSizeExceeded":false,"_released":false,"_bufferedEvents":[{"0":"pause"}],"_events":{},"_eventsCount":1},null],"_currentStream":null,"_boundary":"--------------------------465935617733580427703067"}' http://localhost:8080/dummyservice
Would you consider using the
-F 'param=value'
flag and the@
notation for file uploads?Example:
The text was updated successfully, but these errors were encountered: