I want to use the RequireHttpsAttribute to prevent unsecured HTTP requests from being sent to an action method.
C#
[RequireHttps] //apply to all actions in controller
public class SomeController
{
[RequireHttps] //apply to this action only
public ActionResult SomeAction()
{
...
}
}
VB
<RequireHttps()> _
Publ...
For various reasons I have created a simple HTTP server, and added SSL support via OpenSSL. I'm using self-signed certificates. IE, FireFox and Chrome happily load content as long as I add the CA to the trusted root CA's.
However, wget (even when using the --no-check-certificate flag) reports:
OpenSSL: error:14094410:SSL routines:SSL...
Besides simply redirecting from HTTP to HTTPS, the RequireHttps attribute also changes my URL's question mark ? to %3F. Unsurprisingly, that breaks things.
Why? How do I fix it?
scenario:
I try to navigate to http://www.example.com/message/compose
But let's say I don't have permission to view that page.
<HandleError()> _
Public Cl...
I'm a little confused here. I read some of the earlier questions on https caching but I didnt get a clear answer.
I've got a script sitting on: https://www.example.com/main.php
It generates an html page that refers to images/css/js resources sitting (relatively) at:
/css /javascript /images /a/b/img2
How do I enable caching for these...
/* THIS would appear to be a duplicate of another question I had asked 10 days back (http://stackoverflow.com/questions/1601876/htaccess-redirecting-to-https-www-mydomain-com-and-virtual-folder-access), but (a) I didnt get any responses to the changes I made to the question, and (b) this question here is a more complex version of the abo...
I use RequireSsl attribute to redirect to a https url if an action is decorated with it.
RequireSsl
I now need a good way to link back to url that dont use https. This post explains my problem in clear english: link to http
I am not shure what the easiest way is. In old school ASP.NET I used secureWebPages on codeproject. To be hones...
What should we do for https connection using glassfish in both client and server side
...
Ok, now i have my own function that runs inside or after the NSS_init.
This functions return 2 values.
Now, my problem is, how to pass this return value to the tls extension inside NSS?
I found a file called ssl3ext.c in NSS, but dont have any clue where to start or what to do.
So in the end, I have a Http header with additional inform...
Hi everyone,
I'm maintaining a Ruby on Rails site and I'm confused as to how to perform redirects to relative URLs using the https protocol.
I can successfully create a redirect to a relative URL using http, for example:
redirect_to "/some_directory/"
But I cannot discern how to create a redirect to a URL using the https protocol. I...
I have multiple sites on a single IIS 6 server running ISAPI Rewrite 3 (free addition).
I need to redirect just one of the sites to https if the request comes in as http.
Example: I need http://bar.foo.com to redirect to https://bar.foo.com . I don't want this redirect to affect http://www.foo.com or http://foo.com or http://meh.foo...
I'm fairly new to HTTPS/SSL/TLS and I'm a bit confused over what exactly the clients are supposed to present when authenticating with certificates.
I'm writing a Java client that needs to do a simple POST of data to a particular URL. That part works fine, the only problem is it's supposed to be done over HTTPS. The HTTPS part is fairly ...
Anyone know of SSL / https support for Picasaweb? I have a web site that uses SSL, but trying to display Picasaweb photos is a problem. IE8 keeps complaining with a pop-up "Do you want to view only the webpage content that was delivered securely?" Asking all possible web page users to change their IE8 settings sounds unfriendly (and u...
I need to create HTTPS call a to remote server that return a data
the response of that server dose not include a valid HTTP protocol
and i am getting that error
System.Net.WebException: The server committed a protocol violation. Section=ResponseStatusLine
i all ready did that
useUnsafeHeaderParsing
but that did not help probably be...
Hi,
I am getting 'Timed out' exception while trying to establish HTTPS connection through my application. I am able to access same url from browser.
Also, I can make HTTP connections successful from my app using WAP2.0 gateway. Below is my HTTPS URL structure
https://secure..com/mobile/mobile_session.php;deviceside=true;ConnectionUID=...
I have an application which uses 2 web sites (so I guess that is 2 applications...). The user logs on via a https website and is then diverted to a unsecure http website application on successful logon (using forms authentication). I (and others) have started getting the message
"The current web page is trying to open a site in your ...
Hi,
Im sure ive seen a feature in apache that can rewrite urls so you can point domain2.com at domain1.com and it rewrites everything domain1.com to domain2.com on the fly.
is there a similar thing for https?
In apache, if i go to https://mysite.com, the page itself is over https, but all images/links are http://. Is there way to auto ...
How do I do this? It seems the SilverLight 2.0 HttpWebRequest does not allow you to set Credentials or set the Authorization header.
...
Hi, I am having troubles configuring JBoss for a secure environment.
Here's our environment:
We have an F5 Loadbalancer which has our domain's wildcard certificate.
I have several applications running on JBoss on a server called peanut.
From within our firewall, I can run the application as http://peanut.mydomain.com:8080
From the ...
Hi all,
I would want to ask you if you know any application like fiddler but for mac os x , i need to debug some requests from google earth in mac os x. i used to do it with fiddler on windows but now i don't know ho to do them in mac. Thanks in advance.
...
I'm trying to make it possible for the user to download an Excel spreadsheet from our site, by having a button that redirect through this:
Response.Redirect(string.Format("../excel/ExcelForm.aspx?pathName=&fileNameDisplay={0}&fileNameUnique={1}", "spreadsheet.xls", fileName));
The aspx page just sends back the file through the Respons...