JacDev's avatar

Test HTTPS

Hello,

I'd like to test my urls for https. So I'd expect a Status 302 on normal URL's and a 200 on https URLS. The default one for the 302 is simple $response = $this->get('/');

The version for the https I cannot find any info about. How can I do a test response on an https request?

0 likes
3 replies
JacDev's avatar

The docs says it returns a boolean whether it is secure or not. But guess I cannot call it to see the response. I get an error anyway about the MethodException.

Also the callSecure that I found on the internet (from L4.X, does not seem to work. Does anyone have a working example to get the Status from an https url for testing?

JacDev's avatar
JacDev
OP
Best Answer
Level 1

Never mind. I'll do it with get and enter the url manually with https. Thanks anyway. Hope it could have been done easier.

Please or to participate in this conversation.