snoopy 프록시 우회를 사용할 경우
https 접속시 아래와 같은 메세지를 표출하는 경우가 있다.
HTTPS connections over proxy are currently not supported
해결 방법은아래 소스로 넘기는 url 값을 변경하면 된다.
$snoopy->referer = $url;
$snoopy->fetch($url);
에 넘기는 파라미터값을 https->http로 변경하면 된다.
예제 소스는 아래와 같다.
$url=str_replace("https","http",$url)
'개발 > php' 카테고리의 다른 글
php curl 새창 읽기 get 방식, post 방식 데이터 넘기기 예제 (0) | 2021.01.19 |
---|---|
php 카카오 로그인 예제 (0) | 2021.01.19 |
php array_pop()이란 예제 (0) | 2021.01.19 |
"continue" targeting switch is equivalent to "break". error fix (0) | 2021.01.19 |
stream_socket_client() php_network_getaddresses getaddrinfo failed name or service not known (0) | 2021.01.12 |
댓글