You can use:
echo curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
More Related Contents:
- Recommendations for processing incoming data on a web server [closed]
- PHP, cURL, and HTTP POST example?
- Can PHP cURL retrieve response headers AND body in a single request?
- How do I make an asynchronous GET request in PHP?
- Setting Curl’s Timeout in PHP
- How can I select and upload multiple files with HTML and PHP, using HTTP POST?
- Manually parse raw multipart/form-data data with PHP
- Scrape web page contents
- Persistent/keepalive HTTP with the PHP Curl library?
- Correct way to set Bearer token with cURL
- How to include Authorization header in cURL POST HTTP Request in PHP?
- php: Get html source code with cURL
- PHP multipart form data PUT request?
- Add http:// prefix to URL when missing
- Web scraping in PHP
- GET vs. POST Best Practices
- PHP Upload fails for Video but not Image [closed]
- RAW POST using cURL in PHP
- Header only retrieval in php via curl
- A problem occurred somewhere in the SSL/TLS handshake
- How to partially download a remote file with cURL?
- Convert all types of smart quotes with PHP
- How to make PHP generate Chunked response
- PHP simple foreach loop with HTML [closed]
- Count and limit the number of files uploaded (HTML file input)
- how do I get all checkbox variables even if not checked from HTML to PHP?
- New containing div after every 3 records
- How to get info on sent PHP curl request
- Print less-than and greater-than symbols in PHP
- Strip HTML tags and its contents