This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
HTTPS wrapper not available? #34
Comments
It's not just as simple as adding 'https' as another case in the scheme check in the PHP.Core.StreamWrapper.GetWrapperInternal method (StreamWrappers.cs:676), is it? |
+1 |
I'm also struggeling with this, did you find a solution? |
Curl turns out to work out of the box with SSL, curl is a native phalanger extension. First you need to add curl in your app.config
Also you need to include PhpNetCurl.dll in your distribution. Then you can execute requests using php curl functions.
Works for me, good luck! |
Thanks, but I'm struggeling to get this to work. I don't get any result in the output. Heres the code I have so far: function curl_post($url, $postvars) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 0); //0 for a get request
curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
$response = curl_exec($ch);
print "curl response is:" . $response;
curl_close($ch);
}
$id = "ide";
$class = "openingTitle";
$url = "https://external.page.com/subdir/";
$postvars = "ClassAddr=$class&id=$id";
echo curl_post($url, $postvars); And heres the raw-data I want to pull: <div id="ide">
<div>
<div class="openingTitle"><a href="./opening;jsessionid=E2A19018E967B4771224A9FA515AFBC0?0-1.ILinkListener-content-contentPanel-openings~view~container-openings~view-0-details"><span style="font-weight:bold;">fagarbeider</span></a></div>
<div class="openingIngress"><p>Avdeling teknisk drift har ledig stilling som fagarbeider vann/avløp.<br/>Fast, 100 %, ledig snarest.</p></div>
<div class="openingDetail"><i>Utlyst: <span>28.01.2015</span></i></div>
<div class="openingDetail"><i>Søknadsfrist: <span style="color:red">01.03.2015</span></i></div>
<div class="openingDetail"><i>Selskap: <span>Randaberg kommune</span></i></div>
<div class="openingDetail"><i>Stillingstype: <span>Fast ansatt</span></i></div>
<div class="openingDetail"><i>Lokasjon: <span>Avd. teknisk drift</span></i></div>
<div class="openingDetail">
</div>
</div> |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
Trying to use file_get_contents() for an https:// url however I'm getting
Normally (without Phalanger), enabling the openssl module would provide this wrapper, however adding the php_openssl.mng assembly does not resolve this.
Even with php_openssl.mng added (and confirmed that it's loaded through a call to phpinfo()), a check of stream_get_wrappers() only returns 'ftp' and 'http' (twice, oddly)
Is there something else I need to do to enable the https stream wrapper in Phalanger?
Cheers,
Eion
The text was updated successfully, but these errors were encountered: