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)
- clang-cl warnings in 'vtls/bearssl.c'
- NTLM authentication failing on Linux unless --http2 is specified HOT 3
- HTTP/2 libcurl regression HOT 5
- clang-cl warning in 'http/clients/ws-data.c' HOT 4
- Change in behavior for --remote-header-name HOT 2
- HAVE_STRUCT_TIMEVAL fails on Ubuntu 22.04 when it shouldn't HOT 3
- Bad order of linker arguments HOT 6
- curl 7.88.1-10+deb12u5 fails to download with tftp HOT 5
- mbedtls: trace with double-lines HOT 3
- About "add_custom_target(man ALL DEPENDS ${man_MANS})" HOT 10
- Write function callback is called twice after resume transfer and return CURL_WRITEFUNC_ERROR HOT 19
- File descriptor leakage HOT 10
- File descriptor leakage with multi handle and c-ares HOT 14
- mutli-thread crash with curl_share setting CURL_LOCK_DATA_CONNECT? HOT 4
- Test cases sometimes timeout HOT 1
- aws-sigv4 failing to calculate the right signature when using "content-type: multipart/form-data" HOT 7
- utf8 in powershell core HOT 8
- Having error alert when ./configure curl in a folder with an ".app" extension on macOS 14 HOT 3
- Please support setting adjustment algorithm sequence HOT 2
- `curl_multi_perform` not updating `running_handles` after redirection success HOT 5
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.