Comments (6)
Yeah, I'm thinking which the best way to do that is. I figure one way is to introduce a separate option, like --data-raw "blabla" that never reads from a file. Another way would be to introduce another prefix that means "use the rest of the data raw", so that a script could prefix with that magic and then not risk reading from a file. But such a prefix would risk that there are users out there already using that prefix and then we'd break their scripts...
from curl.
Yeah, I think --data-raw "blabla"
probably is the smart way to go here. Thanks for quick response!
from curl.
That should be a really simple and yet valuable addition. Also a good chance for someone to get into curl coding...
from curl.
Hi, I'm looking to contribute to curl and definitely interested in this request. I have a prototype of the change working but I have some questions. Would you for ever reason want to url-encode the "@"? If so, there might need to be yet another option, such as '--data-urlencode-raw'.
from curl.
Thanks for doing this!
No, we don't need an url encoded version of raw. --data-urlencode should already be enough for that
from curl.
Landed in 6a72613.
from curl.
Related Issues (20)
- HTTP/2 + CURLOPT_FAILONERROR returns incorrect error code CURLE_RECV_ERROR HOT 2
- HTTP/2 + TLS spends a lot of time in recv (buffering issue) HOT 9
- File name not be transformed HOT 2
- domain name with trailing dot fails the certificate check when using gnutls HOT 4
- Circle CI openssl breakage on macos HOT 10
- Quiche CI job occasionally fails during a download abort test HOT 5
- version 8.7.1 fails to compile for IOS SDK 17.2 HOT 5
- Version 8.6.0 and 8.7.1 fails to compile for CentOS 7 HOT 2
- Please consider --ca-native for OpenSSL by default on Windows HOT 2
- version 8.7.0 and 8.7.1 don't compile against OpenSSL 1.1.0h on Linux HOT 3
- Change in behaviour for duplicate "Transfer-Encoding = chunked" headers HOT 3
- Please update tiny-curl HOT 1
- SOCKS problem with 8.7.0+ HOT 21
- test 345 fails on AppVeyor HOT 2
- Unable to upload file with curl when --limit-rate is set to specific value HOT 3
- GitHub actions major outage/problem HOT 2
- `git clone` hangs with curl-8.7.1 HOT 7
- wolfSSL HTTP/3 peer verification is lacking HOT 4
- Ambiguous error message when decompressing brotli stream HOT 2
- CURL_VERSION_GSSAPI is not display on curl tool. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl.