/    Sign up×
Community /Pin to ProfileBookmark

Which cURL Php Function fetches SSL/https Pages ?

Php Folks,

How do you write code to enable cURL php to fetch https/ssl pages ?
What lines of code do you write.
What cURL php functions I should be looking into into tutorials ?

Thanks

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@ginerjmApr 02.2020 — Have you begun your research on how to use CURL?
Copy linkTweet thisAlerts:
@developer_webauthorApr 05.2020 — @ginerjm#1616891

Yes. But i want to get work experience from the experienced guys like you. What lines of code do you yourself write when you want cURL to fetch ssl/https pages ?
Copy linkTweet thisAlerts:
@ginerjmApr 05.2020 — We prefer to help people out. Show us the code you are having a problem with.
Copy linkTweet thisAlerts:
@developer_webauthorApr 05.2020 — @ginerjm#1617007

I was taught the following code would do but I want to see if you people do it differently or not.

<i>
</i>curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);


You might do it like this ...

<i>
</i>curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, TRUE);


But is there any other way than VERIFYPEER & VERIFYHOST ?

And, what does it mean by VERIFY PEER ? I guess the VERIFYHOST means cURL will check the SSL certificate of the website. Correct ? Yes or no ?
Copy linkTweet thisAlerts:
@developer_webauthorApr 06.2020 — @ginerjm,

Well ?
Copy linkTweet thisAlerts:
@developer_webauthorMay 04.2020 — @LouisGough#1617886

Ok. Thanks.

Go ahead!
Copy linkTweet thisAlerts:
@developer_webauthorMay 09.2020 — @LouisGough,

Well ?
×

Success!

Help @developer_web spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 3.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 10 SATS,
)...