Sometime we want to fetch the information from a domain. In PHP file_get_contents function would work fine. We can easily get few pages without getting blocked but if we want to circumvent few security measures then we have to use CURL with proxy and custom headers. Below is the example of custom headers :

 

 

The code for proxy will also be posted.

 


faltutech

Pursuing MCA from YMCA University, Faridabad

Leave a Reply

Your email address will not be published. Required fields are marked *

Read previous post:
Control Instructions in C- Questions and Answers

1. In a switch statement 'default' case is written at the end or at the start or wherever we want...

Close