w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How can I access sites through HTTPS with Rebol?
Saphirion's R3 builds have support for HTTPS built-in. In Saphirion's builds, the HTTPS scheme is not implemented in native code, but rather transparently based on the default HTTP scheme (done by Gabriele Santilli). Saphirion's R3 builds contain an implementation of a TLS scheme (also writen in Rebol), which can be used to write any TLS-based secure protocol just at the Rebol script level. The TLS scheme behaves (almost) the same as the plain TCP scheme. Only the encryption algorithms used by Saphirion's TLS scheme are implemented in native, cross-platform C code. As a proof of this concept, you can compare Saphirion's Android R3 port which uses exactly the same features (and I guess the recently compiled OSX version behaves the same as well). This approach is much more flexible than in

Categories : Http

Chrome extension is not loading on web sites with https
In your manifest file, the matches in content_scripts should be like this: "content_scripts": [ { "matches": [ "http://*/", "https://*/" ], ... }, ... ]

Categories : Google Chrome

Facebook like button https issue: protocol mismatch from http and https
Reviewing the js code on Facebook there are multiple urls containing hard coded strings for http://static .../rsrc.php it's possible those are the files triggering the error. This may be something Facebook needs to update. On a side note, it may be possible to download that js file from Facebook and store it on your server and remove the hard coded http string. I would test this further but I am on my phone at the moment.

Categories : Facebook

when using https, https can't find codeigniter controllers. Running Centos
Change this line : RewriteRule ^(.*)$ index.php?/$1 [L] to : RewriteRule ^(.*)$ /index.php?/$1 [L] The .htaccess would otherwise be redirected relatively to a index.php in the join folder, which off course is not there.

Categories : PHP

How do you enable https and http->https redirects in ring / compojure
It's possible to serve HTTPS with clojure, but it's much more popular to put nginx or something like that in front of your ring server. If you can figure out how to configure jetty, though, run-jetty clearly supports SSL.

Categories : Http

Once https page is visited, all subsequent pages are served from https
ok I think I found the reason. The links I am visiting are relative, so "/forum" for example. Once https is in the browser it seems like visiting a relative address is leaving the root as https:// and appending the relative path. I believe the fix here will be to use the full path for the link instead of relative.

Categories : Htaccess

Redirect all http AND https non-www URLS to https://www.xyz.com via htaccess
In case anyone from the future (HELLO PEOPLE OF THE FUTURE) stumble across this, I asked the same question and had it answered over at Server Fault. Short version: impossible. Long version: http://serverfault.com/questions/523199/redirect-all-http-and-https-non-www-urls-to-https-www-example-com-via-htaccess

Categories : Htaccess

How can i convert links to https when server providing https?
If you remove the http:// portion and use instead: <script type="text/javascript" src="//static.monstermmorpg.com/js_files/jquery-1.9.1.min.js"></script> It should request based on the current scheme being used.

Categories : C#

Can https fallback to http and security level of https
No, HTTPS never falls back to HTTP automatically. It would take deliberate action by the user. If you're just going to a web page by putting its URL into the address bar, this is easy; for form submission it's harder. Yes, sending plain text over SSL is fine. In fact, sending a hashed password doesn't really increase security much at all -- if someone manages to sniff the connection and gets the hashed password, that's all they need to be able to login to the site. It has one small advantage: if the user uses the same password at multiple sites, learning the hashed password for one site doesn't help them get into another site that uses a different (or no) hash. And it's not likely to be feasible to send salted hashes, since the client doesn't know the salt. A cnonce adds an extra level

Categories : Asp Net

HTTPS GET request to https://www.googleapis.com/plus/v1/people/me
Create a Google_Oauth2Service object (put it under the $plus initialization), like: $client = new Google_Client(); $plus = new Google_PlusService($client); $oauth2 = new Google_Oauth2Service($client); and after succesfully authenticating the client use: $userInfo = $oauth2->userinfo->get(); $email = $userInfo['email'];

Categories : PHP

IHttpHandler to redirect "https://example.com" to "https://www.example.com"?
If you use IIS7, you might want to try URL Rewrite Module. http://www.4guysfromrolla.com/articles/072810-1.aspx http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/

Categories : Asp Net

How to redirect from url: https://myfavourite.test.com/Account/LogOn?ReturnUrl=/ to url: https://myfavourite.test.com/ using IIS7.5
I followed the steps mentioned in the below mentioned article and it helped me. http://www.trainsignal.com/blog/iis7-url-rewrite-extension-on-windows-server-2008 I used the Redirect option and then added a Blank rule with the following regular expression: account$|account/(?!LogOff) and that helped me to resolve the redirection issue.

Categories : Asp Net Mvc

apache redrict 301 from https://www.domain.com to https://domain.com
If you request https://www.meinedomain.de/ and your cert isn't authorized for www.meinedomain.de, then you'll get a security warning regardless of how you redirect. The redirect can only happen after they accept the security exception. Make sure you've put those rules in the SSL vhost's config, not the non-SSL one. Apache usually has them separate. If that still doesn't work, you can try just putting this in an htaccess file in your document root: RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www.meinedomain.de$ [NC] RewriteRule (.*) https://meinedomain.de%{REQUEST_URI} [R=301,L]

Categories : Apache

Detect Blackberry Browser on google Sites
I don't know exactly which BlackBerry devices you're trying to detect. Unfortunately, the answer is different for many of them. From this BlackBerry.com reference document, some UserAgent examples: User Agent in BlackBerry 10 Mozilla/5.0 (BB10; <Device Type>) AppleWebKit/537.10+ (KHTML, like Gecko) Version/<BB Version #> Mobile Safari/537.10+ User Agent in BlackBerry Tablet OS Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.0.0; en-US) AppleWebKit/535.8+ (KHTML, like Gecko) Version/7.2.0.0 Safari/535.8+ User Agent in BlackBerry 6 and BlackBerry 7 Mozilla/5.0 (BlackBerry; U; BlackBerry AAAA; en-US) AppleWebKit/534.11+ (KHTML, like Gecko) Version/X.X.X.X Mobile Safari/534.11+ User Agent in BlackBerry Device Software 4.2 to 5.0 BlackBerry9000/5.0.0.93 Profile

Categories : Javascript

Yii switching to HTTPS
Rewrite conditions only affect the immediately following rule. The two !-f and !-d conditions need to be applied to the routing rule: RewriteRule . index.php. Otherwise, everything blindly gets routed to index.php and request for files that actually exist won't get fulfilled. Additionally, the redirect needs to be before the routing rule, so you need to move your conditions to be right above your routing rule: RewriteEngine on # manual change the url base RewriteBase / RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://my.domain.de/$1 [R,L] # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php

Categories : Htaccess

How to run jetty with https using sbt 0.7.7
0.7.7 is a a pretty old version of SBT. I understand you may have reasons not to upgrade, but if you can there is the xsbt-web-plugin SBT plugin that makes configuring SSL in Jetty super easy.

Categories : Scala

PHP SVN Checkout via HTTPS
Please confirm if the extension is enabled. php.ini should consist of extension=svn.so or php.d folder should consist svn.ini with the line extension=svn.so. You can check for extension in phpinfo();

Categories : PHP

Get image via https and php
It should work, try to run this code, function getSslPage($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); $ctype="image/png"; header('Content-type: ' . $ctype); curl_close($ch); return $result; } echo getSslPage("https://ssl.gstatic.com/accounts/services/mail/phone.png");

Categories : PHP

Using HTTPS or SSH with GitHub
https is easier to use than ssh. With ssh, you need to: generate a public/private key publish it on GitHub launch (if you really want security) an ssh-agent to enter the passphrase you would have associated to your private key. https just reuse the GitHub credential you already have. If you don't want to enter your GitHub password for each git command, you can store those credentials in an encrypted ~/.netrc.gpg (or %HOME%/_netrc.gpg on windows). See a full step-by-step example at "Is there a way to skip password typing when using https:// github". I store that way several credentials (to GitHub, BitBucket, internal repos, ...) in one (encrypted) file, and I type one password (the gpg passphrase) once in the morning. I can then access all those repos without having to enter my creden

Categories : GIT

HTTPS only for certain folder
RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} !^/xcart/.* RewriteRule (.*) http://%{HTTP_HOST}/$1 [R,L] RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} ^/xcart/.* RewriteRule (.*) https://%{HTTP_HOST}/$1 [R,L]

Categories : Htaccess

C# HTTPS Proxy using TCP
Got it working. Dealing with the SSL data with StreamReader/StreamWriter was wrong. The data was converted to strings and thereby errors appeard (I assume). Using the NetworkStream.Read andNetworkStream.Write methods with byte[] did it. Here's the code: /// <summary> /// Handles a TCP request. /// </summary> /// <param name="clientObject">The tcp client from the accepted connection.</param> protected void HandleTCPRequest(object clientObject) { TcpClient inClient = clientObject as TcpClient; TcpClient outClient = null; try { NetworkStream clientStream = inClient.GetStream(); StreamReader clientReader = new StreamReader(clientStream); StreamWriter clientWriter = new StreamW

Categories : C#

How do a I get a bit.ly to point to a https URL?
Bit.ly only stores the part of the URL that follows the "http://" or "https://" prefix. Unfortunately that means you can't specify one or the other. The protocol will be determined by the website you're connecting to. Sorry!

Categories : Http

Symfony 1.4 https
You can use filter to do it ,like this class sfSecureFilter extends sfFilter { public function execute($filterChain) { $context = $this->getContext(); $request = $context->getRequest(); if (!$request->isSecure()) { $secure_url = str_replace('http', 'https', $request->getUri()); return $context->getController()->redirect($secure_url); } else { $filterChain->execute(); } } }

Categories : Htaccess

iOS HTTPS requests 101
not sure if this will actually fix the problem, but it may help. you should be using – connection:willSendRequestForAuthenticationChallenge: since the other methods are deprecated. take a look at the overview of the NSURLConnectionDelegate protocol

Categories : IOS

Using HtmlUnit on .NET for https
I believe the problem is the absence of a certificate, so try using what is descibed in this question C# WebClient with https, it might be what you are searching for. Good luck.

Categories : C#

WCF DataService over Https
First Creating a CA Certificate on Windows (use Visual Studio Command Prompt): makecert -sv SignRoot.pvk -cy authority -r signroot.cer -a sha1 -n "CN=Dev Certification Authority" -ss my -sr localmachine Now put the certificate in the "Trusted Root Certification Authority" in Windows Key Store. That can be done through MMC. To do that: Run... -> Type "mmc" -> enter -> choose the "Certificates" console -> Find your created certificate in the Personal store and move it to the Trusted Certificate Authority store. Now we create an exchange certificate signed by the CA certificate: makecert -iv SignRoot.pvk -ic signroot.cer -cy end -pe -n CN="localhost" -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localmachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 NOTE: The EKU OID

Categories : Ssl

mail() on https
$to ="myname@gmail.com"; $subject = "Technical Support Request"; $message = "We received a support ticket from mydomain.com: "; $from = "calendar@mydomain.com"; $headers = "From: $from_respondent_email"; mail($to,$subject,$message,$headers); Try this. It'll work. I used this in my website and its working :)

Categories : Http

Using Symfony2 with HTTPS on localhost
the Symfony2 Community on Google+ helped me out. I just forgot to configure the SSL certificate in my vHost configuration. Should look something like this: <VirtualHost *:443> SSLEngine on SSLCertificateFile PATH/TO/file.crt SSLCertificateKeyFile PATH/TO/file.key ServerName domain.name ServerAlias *.domain.name Thank you anyway for your attention.

Categories : Ssl

add www on http and remove www on https
Try this: RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^example.org$ [NC] RewriteRule ^(.*)$ http://www.example.org/$1 [R=301,L] RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST} ^www.example.org$ [NC] RewriteRule ^(.*)$ https://example.org/$1 [R=301,L] Your second HTTP_HOST condition still checks that the www. is missing, which should be the other way around.

Categories : Apache

Jenkins cannot acces to SVN (https://)
The solution is pretty easy. I connected to SVN repo from my computer (in command line) as user jenkins. I accepted all certificates permanently (p). This created directory ~/.subversion. I copied this directory to server (wget). And from now everything works just fine.

Categories : Svn

Serving socket.io via https
UPDATE: I have managed to update the code, here to share with the community:I now get the socket.io.js served to the client but I cant get the subscription to REDIS channels working quite yet. So here is the latest code: var https = require('https'); var fs = require('fs'); var socketio = require('socket.io'); var redis = require('redis'); var nClients=0; var nPort = 6800; // Port of the Redis Server var nHost = "123.123.123.123"; // Host that is running the Redis Server var sPass = "mySecretPassword"; var svrPort = 443; // This is the port of service var svrOptions = { key: fs.readFileSync('/etc/ssl/private/my.key'), cert: fs.readFileSync('/etc/ssl/private/my.crt'), ca: fs.readFileSync( '/etc/ssl/private/cabundle.crt') }; var servidor = https.createServer(

Categories : Node Js

Use CDN and HTTPS for Spree::Images
Spree's image uploader is provided the Paperclip gem. There's a handy guide for Using Cloudfront with Paperclip. Paperclip will not use asset_host. The first step would be to get your S3 image hosting working the way you want, and then get it to work through Cloudfront. s3_protocol being '' should use protocol relative URL's as shown in this pull request.

Categories : Ruby On Rails

Per https Authentication fails
I speculate that in your use of the 4 parameter form of the credentials method, the netloc and user are wrong. When the URL is https://www.example.com/foo/bar?quux;baz=42#fnord, the netloc is www.example.com:443. The user is a string of the NTLM domain, a single backslash, and the NTLM username, e.g. internalernd. Mind that if you hardcode that value as a string literal as you did in the example, you need to escape the backslash with a backslash. Check for these possible errors.

Categories : Perl

how to write HTTPS route in mvc 4
MVC routes only match the path portion of the URL. They are completely independent of host or protocol. If you want to restrict some URLs to HTTPS only, add the [RequireHttps] attribute to the controller or action.

Categories : Asp Net Mvc

HTTPS request in c++ using Poco
I found the answer. I wasn't really getting the certificate. It works like this: try{ Poco::Net::initializeSSL(); Poco::SharedPtr<Poco::Net::InvalidCertificateHandler> ptrHandler = new AcceptCertificateHandler(false); Context::Ptr ptrContext = new Context(Context::CLIENT_USE, "", "", "", Context::VERIFY_RELAXED, 9, true, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"); SSLManager::instance().initializeClient(0, ptrHandler, ptrContext); Poco::Net::SocketAddress address("www.server.com:443"); Poco::Net::SecureStreamSocket socket(address); if (socket.havePeerCertificate()) { X509Certificate cert = socket.peerCertificate(); std::cout<<cert.issuerName()<<" "; } else { std::cout<<"No certificate"; } }catch

Categories : C++

HTTPS on same port as HTTP?
You don't have to listen to both HTTP and HTTPS on the same port, in your specific case of writing a proxy server. Browsers connect to proxy servers via HTTP, whether for proxying HTTP or HTTPS requests. HTTPS requests use the CONNECT HTTP method to open a direct connection to the HTTPS server---that CONNECT request is still done in the unencrypted portion of the proxy traffic. Edit: Here's what I think your code should look like: http.createServer(function (request, response) { // Handle normal requests here }).on('connect', function (request, socket, head) { // Handle CONNECT requests here }).listen(3128);

Categories : Node Js

how do I force all traffic to https?
If that's the only rules you have in your htaccess file and it's in your document root then you need to check a few things because the rules are fine. Make sure mod_rewrite is loaded. There should be a line in your httpd.conf file that looks something like: LoadModule rewrite_module modules/mod_rewrite.so Make sure it's uncommented. Make sure the directory that your htaccess file is in (should be your document root) is allowed to override server settings via htaccess. In your vhost or server config, there should be something along the lines of <Directory "/var/www/"> AllowOverride All ... (some other stuff) </Directory> Make sure the AllowOverride is at least FileInfo Make sure your document root is actually where your htaccess file is in. Your vhost config sho

Categories : Apache

PHP Curl Login https
Try comparing the HTTP headers sent by your CURL script to those headers sent by your browser (use chrome dev tools). Maybe the remote server is refusing you due to some missing header info. Ensure cookie files have full permissions. From php.net: When specifing CURLOPT_COOKIEFILE or CURLOPT_COOKIEJAR options, don't forget to "chmod 777" that directory where cookie-file must be created.

Categories : PHP

Why doesn't my HTTPS connection use TLS?
I suspect that your connection is using TLS. Wireshark does not automatically recognize all protocols. It uses heuristics, including the port number, to try to determine the layered protocols on a connection. If you are using a non-standard port (like 8443) then Wireshark probably isn't interpreting the connection as TLS even though it actually is. You can manually tell Wireshark to decode a connection as a specific protocol when it doesn't choose the correct one by itself. Right-click on one of the packets and choose "Decode As..." from the context menu. Then choose SSL as the Transport protocol. Wireshark should now try to parse the connection as a SSL/TLS stream. Here is the documentation on Wireshark decoding.

Categories : Ssl

POSTing xml over HTTPS with Java
The HTTP request is generally correct to send XML as text, with the correct content type. If you have a DOM object of some sort, you would just serialize it to XML, as text, either on disk or in a buffer or a string, and then send that, as per the link, to the other server. The other server will parse the XML string and get whatever form of object it wants.

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.