Skip to content

Commit

Permalink
docs: CURL option force_ip_resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Sep 20, 2024
1 parent b99381e commit dfbad49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions user_guide_src/source/libraries/curlrequest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,15 @@ is true:

.. _curlrequest-version:

force_ip_resolve
================

.. versionadded:: 4.6.0

To set the HTTP handlers to use ``v4`` only ipv4 protocol or ``v6`` for ipv6 protocol:

.. literalinclude:: curlrequest/036.php

version
=======

Expand Down
4 changes: 4 additions & 0 deletions user_guide_src/source/libraries/curlrequest/036.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php

// Force ipv4 resolve
$client->request('GET', '/', ['force_ip_resolve' => 'v4']); // v4 or v6

0 comments on commit dfbad49

Please sign in to comment.