Not sure about your specific cURL script but the base cURL function can be found here inside of WordPress:
https://core.trac.wordpress.org/browser/tags/4.8/src/wp-includes/class-wp-http-curl.php#L220
Also remember modifying WordPress core can cause issues so it’s always best to try to leverage hooks and filters. You may be able to modify the default cURL request via http_api_curl
.
https://developer.wordpress.org/reference/hooks/http_api_curl/
This article also breaks down PHP, cURL and WordPress with more detail: https://deliciousbrains.com/php-curl-how-wordpress-makes-http-requests/
Hope this helps!
Related Posts:
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Uploading media with the REST API
- Is it safe to use $_SERVER[‘REQUEST_URI’]?
- cURL 28 error after switch from to brew php 7.2 on localhost
- Creating a post with the REST API, curl and oauth returning 401 error
- Installing wp3.2.1 on IIS; getting empty sessions
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- Use wp_remote_get to get JSON instagram feed from public profile
- wordpress upgrade has broken my permalinks
- Creating login session via CURL
- export a csv file from the database with a cronjob
- Programmatic Login from 3rd Party site
- get post content of particular post by url
- Configure Php server with ISAP
- WordPress from url get external source title
- Hardening uploads folder in IIS breaks images
- WordPress transient not working with WP Engine
- How to send a HTTP Post request using PHP Curl and WordPress
- SOAP Request/Parsing XML From wp_send_json_success
- REST API works in browser and via AJAX but fails via cURL
- cURL error 6 on news area, and also won’t auto update
- Post to WordPress from another Server via PHP
- Accessing an API with jQuery and AJAX
- calling admin-ajax.php from admin-ajax.php
- Suddenly got alert when trying to login to admin panel of wordpress
- Unable to update plug-ins – Undefined index a:1:{s:3:”ssl”;b:1;} in class-requests.php on line 213
- Contactform7: display results from CURL
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- How do I make a redirect in PHP?
- Display all meta for a post?
- How to include external page to wordpress page?
- How to overwrite youtube embed?
- How to resize image on client-side before upload?
- How to show order data by multiple ID?
- Print html when custom field has value inside while loop
- how to create and show sessions in word press?
- Foreach insert query the best way
- Stop Duplicating Terms in a Foreach Loop
- Generating add_settings_section() calls dynamically
- Loading jQuery in the footer after removing jQuery migrate?
- How to generate page content from database the right way?
- “before delete post” action fire when the post is updated?
- Register non hierarchical taxonomy and the show meta box in the post type
- Admin username and password
- dynamic php inside wordpress page
- WordPress excerpt not working
- Random Default Avatar Function
- Redirect to another page after submission using wp_mail
- Using WordPress gettext functions in a library outside plugin or theme scope
- Showing content from one page on another
- How to insert a single row to WP database table?
- How can I randomize a Nextgen Gallery Slideshow [closed]
- Where to put snarfer.php?
- WooCommerce custom product dimensions
- Display an image if odd number of posts in grid
- HTML escaping data with ajax requests
- Custom ajax call returns 0 [duplicate]
- How to use wordpress function wp_enqueue_script() in php?
- Parse error: syntax error, unexpected ‘,’
- Create a package of products as one Item in woocommerce?
- How to set cookies
- How can I split my query result in 2 arrays?
- how to edit a specific post slug using a php code?
- Display the video of a post_format Video
- Manually Create PHP Page For A Redirect
- Get All In One SEO Pack to use custom field instead of Content
- php loading different structure than source code
- Submit form to db
- How do I attach an invoice PDF to an email in the Dukapress plugin for WordPress?
- WordPress User Meta value variable into Google Gauge Chart
- “WARNING: Found @$ in the file __ Possible error suppression is being used
- Submiting with problems on one of the options php wprdpress
- Embed video from streamtape using direct link
- Changing ALT-tag for logo in wordpress
- str_replace remove words from title
- Woocommerce checkout page – custom field checkbox value into email
- Create form which redirects to site in network?
- Custom Plugin Develoment, Form Action
- Restrict File Type Uploads by User on Wordress via functions.php
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- AJAX Returning Way Too Many Posts
- WordPress AJAX load post metadata in modal
- Add point on excerpt post
- Custom Theme, Editor won’t wrap text (i.e. change width)
- Give permission to admin to see user’s page
- add shortcode heading showing multiple time
- List of child pages fetch next results at link click
- Limit ads appearing more than three times
- How does add_action ‘comment_post’ work?
- Showing Subcategory’s Name and Link Instead of Parent Category’s
- reorder a WP_Query, using a dropdown
- Convert ACF checkbox choices to links [closed]
- Dynamic Email Handler with ‘header (“Location: …’
- Grabbing value of input field inside of array
- Implement OAuth2 in custom plugin
- login redirect based on user role not work as expected
- redirect user from login page if is logged
- Count custom posts type and filter by tag
- Error with PHP 8
- How to create a User Role and give permission to only use Web Stories plugin?