Comments (3)
Oh that's actually, a valid error message. I believe you want f=Curl::PostField.content('name','sdf');
f=Curl::PostField.content('name','sdf');
irb(main):004:0* f.to_s
=> "name=sdf"
irb(main):005:0>
from curb.
Thanks, but what's the right way to do file upload then? It didn't seem to matter whether the 2nd argument is a valid filename or not. The docs say that the first argument should be the name of the field, the second should be the local filename and the optional third argument should be the name of the remote filename. Either the docs are incorrect, or the error message doesn't make sense.
from curb.
Wow, it was late last night. Yes you are totally right i can't see why PostField.file#to_s would not print out the name=filepath. There might be a use case I missed but I believe this change won't break anyone. fixed in commit: http://github.com/taf2/curb/commit/eed32d541d43a78d062055fb383df609b336e7ec
from curb.
Related Issues (20)
- Please fix license on rubygems.org, it says MIT HOT 1
- on_failure receive incorrect argument HOT 1
- README: Change URLs to be to curl.se HOT 1
- New version request HOT 4
- Is CURLOPT_REQUEST_TARGET needed for Request-URI different than Host header? HOT 2
- Library not loaded: @rpath/libgssapi_krb5.2.2.dylib HOT 1
- Hello, I am new into coding, so i was trying to set up environment for ESG-BERT: https://github.com/mukut03/ESG-BERT using pytorch, but i am unable to solve this error on windows using anaconda, the server is running but unhealthy. Error(ESG-BERT) C:\Users\Administrator\anaconda3\envs\ESG-BERT>curl http://localhost:8080/ping { "status": "Unhealthy" }
- [BUG] Segmentation fault with Ruby 2.3 & curb 1.0.1 HOT 1
- LICENSE file contents does not match MIT license in the gemspec file HOT 1
- Gem install fails in windows 10 wsl v1 HOT 1
- Build against curl-impersonate HOT 1
- Investigate Ruby T_DATA warning HOT 1
- Segfault in Multi after upgrading to v1.0.3 HOT 5
- CURLOPT_NOPROXY not supported
- Curl::Err::HostResolutionError on WSL
- how do I `download_byte_limit` with curb
- `test_connection_keepalive(TestCurbCurlMulti)` skipped with Curl 8+ HOT 1
- Cannot edit cookies.
- Error Installing on Ubuntu 20.04.6 LTS
- error running the curb test suite with curl 8.7.1 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 curb.