Tag Archives: https

apache2 – https redirection to http for a given page

Questions: I have a specific problem about the redirection of HTTPS to HTTP for several pages. I have Apache2 in front of Zope. Here’s the configuration of my VirtualHost on port 80 : <VirtualHost *:80> ServerAdmin root@website.com ServerName website.com ServerAlias www.website.com <IfModule mod_rewrite.c> RewriteEngine On # www to non www RewriteCond %{HTTP_HOST} ^www.(.*) [NC] RewriteRule… Read More »

file_get_contents 1 minute timeout for https?

Questions: I’m having difficulty with PHP’s file_get_contents hanging for 60s when accessing certain resources over https. I’m not sure whether it’s a client or server end issue. On the client Working on the command line: $ URL=”https://example.com/some/path” $ wget “$URL” -O /dev/null -q # takes a few milliseconds $ curl “$URL” >/dev/null # takes a… Read More »

GitHub authentication failing over https, returning wrong email address

Questions: Initiating a push or any other action with GitHub from the command line (over https, not ssh) that calls for the username and password not only fails but, when it does, it returns Username for ‘https://github.com’: username Password for ‘https://username@github.com’: remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com/username/repository.git/’ I do not have… Read More »

XML Namespace URI with HTTPS?

Questions: Is it better to have a xmlns URI with https protocol? For example this is the recommended way by the manual: <http xmlns=”http://www.springframework.org/schema/security”/> Is it legal and better to use this way? <http xmlns=”https://www.springframework.org/schema/security”/> Are there XML parsers that try to connect to an address defined by xmlns URI? Parsers always download schemas by… Read More »

NSURLConnection synchronous request on https

Questions: Can anyone tell me the way how I can make a synchronous call to the https server? I am able to do asynchronous request on https server using following delegate methods. – (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace and – (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge but I need to do synchronous. Answers: //Encoding the request NSData *postData… Read More »

Ajax using https on an http page

Questions: My site uses http and https protocol; it doesn’t affect the content. My site uses jQuery ajax calls, which fills some areas on the page, too. Now, I would like to do all ajax calls over https. (please dont ask me why :)) When I am on a page with https protocol, ajax requests… Read More »