473,473 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Cannot click when using HTTPS

I have written an application that reads third party web pages. If I am
using HTTP everything works fine.

I create an AxSHDocVw.AxWebBrowser object and then Navigate2 to the page. I
then populate some form fields, browse to the appropriate button on the page
and then call it's click method. This works just fine using HTTP. However,
one of the web pages changed to HTTPS (actually 2 of them have). Now, the
click does not throw an exception, however it does not do anything either. I
also display the web page so I can see that the form fields get populated
successfully. If I then click the button manually in the
AxSHDocVw.AxWebBrowser windows it works fine. But the click event does not
seem to do anything. Again, this works just fine with HTTP.

Any suggestions? I am using C# and have tried both Visual Studio 2003 (have
to use it for the .net version) and Visual Studio 2005 SP1. I have used both
IE6 and IE7 as the browser on the computer as well.

Thanks,

--
Dave E
Dec 14 '07 #1
4 1411
Dave,

It sounds like a security issue to me. Since it is an HTTPS site, IE
might think that script access should be disabled to some degree (it might
see external manipulation of the DOM as a Cross Site Scripting attack).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Dave E" <Da***@discussions.microsoft.comwrote in message
news:33**********************************@microsof t.com...
>I have written an application that reads third party web pages. If I am
using HTTP everything works fine.

I create an AxSHDocVw.AxWebBrowser object and then Navigate2 to the page.
I
then populate some form fields, browse to the appropriate button on the
page
and then call it's click method. This works just fine using HTTP.
However,
one of the web pages changed to HTTPS (actually 2 of them have). Now, the
click does not throw an exception, however it does not do anything either.
I
also display the web page so I can see that the form fields get populated
successfully. If I then click the button manually in the
AxSHDocVw.AxWebBrowser windows it works fine. But the click event does
not
seem to do anything. Again, this works just fine with HTTP.

Any suggestions? I am using C# and have tried both Visual Studio 2003
(have
to use it for the .net version) and Visual Studio 2005 SP1. I have used
both
IE6 and IE7 as the browser on the computer as well.

Thanks,

--
Dave E

Dec 14 '07 #2
So am I out of luck, or is there possibly a work around? I can't seem to
find any options to set to work around it.

--
Dave E
"Nicholas Paldino [.NET/C# MVP]" wrote:
Dave,

It sounds like a security issue to me. Since it is an HTTPS site, IE
might think that script access should be disabled to some degree (it might
see external manipulation of the DOM as a Cross Site Scripting attack).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
Dec 14 '07 #3
Dave,

If it is indeed a security issue that is preventing the DOM model from
being changed programmatically, then yes, you are out of luck.

It sounds like you are trying to automate the browsing of some pages.
You could use the HttpWebRequest/HttpWebResponse classes to send the HTTP
requests and process the responses.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Dave E" <Da***@discussions.microsoft.comwrote in message
news:A2**********************************@microsof t.com...
So am I out of luck, or is there possibly a work around? I can't seem to
find any options to set to work around it.

--
Dave E
"Nicholas Paldino [.NET/C# MVP]" wrote:
>Dave,

It sounds like a security issue to me. Since it is an HTTPS site, IE
might think that script access should be disabled to some degree (it
might
see external manipulation of the DOM as a Cross Site Scripting attack).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

Dec 14 '07 #4
Is there someone who could answer if it is an issue or not? Do I need to
open a case with MS to get a definitive answer? This is rather important for
me. Or if someone knows of a third party redistributable that performs
similarly that would be great as well.

Unfortunately because of cookies, multiple script files being loaded and
needed to run and the overall complexity of the pages, I can't really use the
httpweb classes for this. I started out using them, but I really need to be
able to execute the web pages and then perform actions on them and use IE as
an interpreter of the pages.

--
Dave E
"Nicholas Paldino [.NET/C# MVP]" wrote:
Dave,

If it is indeed a security issue that is preventing the DOM model from
being changed programmatically, then yes, you are out of luck.

It sounds like you are trying to automate the browsing of some pages.
You could use the HttpWebRequest/HttpWebResponse classes to send the HTTP
requests and process the responses.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
Dec 14 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SMike | last post by:
I post this message again as I didn't get an answer back. I would appriciate any ideas. I am getting the following error when sending a first https request: Cannot access a disposed object...
1
by: aben | last post by:
Hello all, I am using the following microsoft article to try and learn more about SSL: http://support.microsoft.com/default.aspx?scid=kb;EN-US;315588 I have a virtual directory that I have...
0
by: cmay | last post by:
Has anyone else seen this? Every now and then when using the back button on our site, we get an IE popup box saying: "Internet Explorer cannot open the internet site: https://mysite.com/asdfasdf...
6
by: chris | last post by:
Client page: <input type="file".....> Server: Apache, OC4J, J2EE app XP, SP1 and updates Works perfectly under HTTP. However, under HTTPS the user needs to hit the submit button really fast to...
4
by: WWengert | last post by:
When I open a previously created solution it opens fine and I can edit and run it but when I attempt to Build or Rebuild the Setup Project in that solution I get a popup saying "The feature you...
0
by: DWoood | last post by:
Background: We have been developing a Web Services Project (let's call it "MyServices") for several months and have had no problems with it. In fact other members of my team are still...
0
by: Frank | last post by:
Hi, I've applied a SSL cert to a portion of my website, which brings the user to an https://mysite/login/Login.aspx page. After successfully logging in, the user can browse around freely in the...
0
by: ronscottlangham | last post by:
I have a WCF Web Service that I develop using the ASP.NET Development Server in Visual Studio. In release, the web service will support both HTTP and HTTPS. Initially I had only HTTP configured in...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.