-
Notifications
You must be signed in to change notification settings - Fork 476
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
add information about curl -F option without outer quote #4510 #9654
Conversation
What this PR does / why we need it: Add information about problem with curl -F option without outer quote for curl 7.56.0 and higher versions. IQSS#4510 Which issue(s) this PR closes: IQSS#4510 Special notes for your reviewer: None. Suggestions on how to test this: None. Does this PR introduce a user interface change? If mockups are available, please link/include them here: No. Is there a release notes update needed for this change?: No. Additional documentation:
add information about curl -F option without outer quote IQSS#4510
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the man page, it should be "form" not "from".
fix --form-string to --from-string Co-authored-by: Philip Durbin <philipdurbin@gmail.com>
fix --form-string to --from-string Co-authored-by: Philip Durbin <philipdurbin@gmail.com>
fix --form-string to --from-string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be "form"
@@ -52,6 +52,20 @@ If you ever want to check an environment variable, you can "echo" it like this: | |||
|
|||
echo $SERVER_URL | |||
|
|||
With curl version 7.56.0 and higher, it is recommended to use --from-string with outer quote rather than -F flag without outer quote. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With curl version 7.56.0 and higher, it is recommended to use --from-string with outer quote rather than -F flag without outer quote. | |
With curl version 7.56.0 and higher, it is recommended to use --form-string with outer quote rather than -F flag without outer quote. |
|
||
-F jsonData={\"description\":\"My description.\",\"categories\":[\"Data\"]} | ||
|
||
Instead, use --from-string with outer quote. See https://github.com/curl/curl/issues/2022 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead, use --from-string with outer quote. See https://github.com/curl/curl/issues/2022 | |
Instead, use --form-string with outer quote. See https://github.com/curl/curl/issues/2022 |
|
||
.. code-block:: bash | ||
|
||
--from-string 'jsonData={"description":"My description.","categories":["Data"]}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--from-string 'jsonData={"description":"My description.","categories":["Data"]}' | |
--form-string 'jsonData={"description":"My description.","categories":["Data"]}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pdurbin
Right. Sorry. I totally misunderstood.
Now I fixed it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://dataverse-guide--9654.org.readthedocs.build/en/9654/api/getting-started.html#curl-examples-and-environment-variables looks good to me.
Thanks, @KimJinYeon! Approved!
What this PR does / why we need it:
Add information about problem with curl -F option without outer quote for curl 7.56.0 and higher versions.
Which issue(s) this PR closes:
Closes #4510
Special notes for your reviewer:
None.
Suggestions on how to test this:
None.
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No.
Is there a release notes update needed for this change?:
No.
Additional documentation: