|
|
@ -16,7 +16,7 @@ PHP interface for Gemini protocol queries by TLS socket connection |
|
|
|
|
|
|
|
|
|
|
|
``` php |
|
|
|
``` php |
|
|
|
$request = new \Yggverse\Gemini\Client\Request( |
|
|
|
$request = new \Yggverse\Gemini\Client\Request( |
|
|
|
'gemini://betahowto.duckdns.org:1965/archive' |
|
|
|
'gemini://yggverse.cities.yesterweb.org:1965/index.gmi' |
|
|
|
); |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
@ -26,8 +26,8 @@ For direct connection provide resolved IP as the second argument |
|
|
|
|
|
|
|
|
|
|
|
``` php |
|
|
|
``` php |
|
|
|
$request = new \Yggverse\Gemini\Client\Request( |
|
|
|
$request = new \Yggverse\Gemini\Client\Request( |
|
|
|
'gemini://betahowto.duckdns.org:1965/archive' // target URL |
|
|
|
'gemini://yggverse.cities.yesterweb.org:1965/index.gmi' // target URL |
|
|
|
'94.140.114.89' // resolved IP, skip to use system-wide resolver |
|
|
|
'68.133.1.71' // resolved IP, skip to use system-wide resolver |
|
|
|
); |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
@ -37,7 +37,7 @@ Alternatively, use `setResolvedHost` method of `Request` object before `getRespo |
|
|
|
|
|
|
|
|
|
|
|
``` php |
|
|
|
``` php |
|
|
|
$request->setResolvedHost( |
|
|
|
$request->setResolvedHost( |
|
|
|
'94.140.114.89' |
|
|
|
'68.133.1.71' |
|
|
|
) |
|
|
|
) |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|