-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
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
curl_formadd() is unavailable #112
Comments
Ah yes, right! I had some difficulty initially with some CI and decided to not bind them in the first pass, I'll take a look now at binding them and see how it goes. |
Ok, lemme know if that works for you! |
Well, it looks good...but I honestly don't know enough about curl (yet) to tell if it works. What's the correct way to take a PathBuf and then upload the corresponding file to a form? |
I believe that would look like this |
Seems like a step in the right direction, but I can't get it to work—though I'm willing to bet it's my fault. Here's my function:
However, |
Hm and you're sure all those files exist? You may be able to use |
Hm, it apparently works with an absolute path but not with a relative one. |
Hm that's odd, the test I have is using a relative path... |
Actually, correction: |
Oh weird, do you have an example that doesn't work in terms of a concrete setup? |
Oh, dear. It just got weirder.
|
Just for posterity: the above problem was caused by a lack of null terminators. This was fixed in 5f9fe7b |
I'm currently trying to write a file upload program. This requires sending data to a form (analogous to
curl -F
from the command line). I've been told that the equivalent function in native libcurl iscurl_formadd()
, but this function is commented out in the curl_sys crate. And, of course, this means there's no corresponding function in the curl crate.The text was updated successfully, but these errors were encountered: