Skip to content
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

Merged
merged 6 commits into from
Jun 23, 2023

Conversation

KimJinYeon
Copy link
Contributor

@KimJinYeon KimJinYeon commented Jun 19, 2023

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:

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
Copy link
Member

@pdurbin pdurbin left a 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".

doc/sphinx-guides/source/api/getting-started.rst Outdated Show resolved Hide resolved
doc/sphinx-guides/source/api/getting-started.rst Outdated Show resolved Hide resolved
KimJinYeon and others added 3 commits June 20, 2023 08:11
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
Copy link
Member

@pdurbin pdurbin left a 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"]}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--from-string 'jsonData={"description":"My description.","categories":["Data"]}'
--form-string 'jsonData={"description":"My description.","categories":["Data"]}'

Copy link
Contributor Author

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!

Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for Review ⏩ to Ready for QA ⏩ Jun 22, 2023
@kcondon kcondon self-assigned this Jun 23, 2023
@kcondon kcondon merged commit 3d6eabe into IQSS:develop Jun 23, 2023
2 checks passed
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for QA ⏩ to Done 🚀 Jun 23, 2023
@pdurbin pdurbin added this to the 5.14 milestone Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

curl issue with native API
3 participants