You may have already know this, but your browser is giving you that error. Trying to work between http and https like that will violate the browser security settings. Some browsers more than others.
Is your aspx page doing anything special that you couldn't recreat with perl or java and run on the TeamSite system?