Skip to content

add information about curl -F option without outer quote #4510#9654

Merged
kcondon merged 6 commits intoIQSS:developfrom
KimJinYeon:develop
Jun 23, 2023
Merged

add information about curl -F option without outer quote #4510#9654
kcondon merged 6 commits intoIQSS:developfrom
KimJinYeon:develop

Conversation

@KimJinYeon
Copy link
Copy Markdown
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. #4510
Which issue(s) this PR 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:
add information about curl -F option without outer quote #4510
Copy link
Copy Markdown
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".

Comment thread doc/sphinx-guides/source/api/getting-started.rst Outdated
Comment thread doc/sphinx-guides/source/api/getting-started.rst Outdated
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
Comment thread doc/sphinx-guides/source/api/getting-started.rst Outdated
Copy link
Copy Markdown
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"


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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@kcondon kcondon self-assigned this Jun 23, 2023
@kcondon kcondon merged commit 3d6eabe into IQSS:develop 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

None yet

Development

Successfully merging this pull request may close these issues.

curl issue with native API

3 participants