Repository navigation
More examples for CURL - #4612
Merged
Merged
Conversation
Contributor
Author
|
There was a man on Reddit, upset with CURL requests in PHP being too complex. I suppose it's just a documentation problem that could be easily fixed. Also, the most common use cases are POST and JSON POST requests. As usual, I request a grammar proofread and overall supervision. Note that distinct CURLOPT_METHOD is not needed as per https://curl.se/libcurl/c/CURLOPT_POST.html |
Member
|
@colshrapnel would you rebase your branch ? |
Added examples for the most used requests
This was referenced Aug 22, 2026
KentarouTakeda
added a commit
to php/doc-ja
that referenced
this pull request
Sep 26, 2026
curl の 3 ファイルを原文の変更に追従しました。これで curl モジュールの未訳・要更新はなくなります。 - `curl_errno()` と `curl_error()` に、`curl_multi_exec()` で実行したハンドルでは `curl_multi_info_read()` がそのハンドルのメッセージを返すまでそれぞれ 0 と空文字列を返す、という注記が追加されました(php/doc-en@ff7a005、php/doc-en#5233。注記の内容は php/doc-en@fa9bae0、php/doc-en#5884 で修正) - 例のページに、POST リクエストを送る例と、JSON を POST リクエストで送る例が追加されました(php/doc-en@e7c6a2f、php/doc-en#4612) ## 対象ファイル reference/curl/ (3) — examples.xml, functions/curl-errno.xml, functions/curl-error.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added examples for the most used requests