internet

Enable proxy by editing registry in real time in c#

This is the code that I use to enable the proxy. It has worked fine on all versions of windows up until Server 2008 R2 (Windows 7 Kernal). Now it only works the fist time. I start my application and enable the proxy and that works fine. I then try disabling it using code similar to the code below. It never gets disabled. If I manua...

how to get handle of Internet explorer and get the textboxes value in VC++

Hi all.. I have a doubt regarding Internet explorer handling in VC++. I need to get the URL entered in address bar of Internet Explorer and the value of textboxes in the webpage. How is it possible? and how can i get them? I'm using FindWindow() to do this, but unable to get around this. Specifically in MFC. Any sort of help is grea...

Why do we need Comet or HTTP polling when we aren't using a browser?

If you have total control of both ends of the wire (client and server), why do people suggest using Comet or HTTP long polling? I understand when you only have a browser as it can only communicate over HTTP. People say you need to do this to beat firewalls because port 80 will be open. But why not just communicate directly over port 80 ...

Android: Has anyone solved the localhost HttpClient Connection Refused error?

I was just wondering if anyone solved this problem. Googling gives tons of posts having this question but not one with a proper reply. I tried literally every combination of the following two pieces of code with and without proxy: /*********** URL METHOD ***************/ //URLConnection conn = aURL.openConnection(); //conn.connect(); ...

Best way of executing code over the internet

Hello.. basically, I am needing to execute a program on the viewers computer through a website. This program must be capable of talking to device drivers however, which makes it an unlikely candidate for activex. The website will only be used by clients(as in, it's not a public site) so having to change security settings isn't too big of...

Need a Windows exe file to launch a html page in local drive without ActiveX warning

I need to distribute a flash-based application to end users. I have a very simple index page to launch another window: <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> function popUp(URL, w, h) { win=window.open(URL,"window","menubar=no,width=" + w + ",height=" + h + ",toolbar=no,resizable=no;titlebar=no"); self.close(); } </script> <BODY o...

What are your experiences with Content Delivery Networks (CDN) ?

What are your experiences with CDNs regarding ease of development, support, performance, pricing, etc? I am planning to use it to host a big number of images. ...

Firefox cache path construction Mac OS X

I know the path for Firefox's cache is as follows on Mac OS X Leopard: ~/Library/Caches/Firefox/Profiles/COMPUTER_CODE.default/Cache How is the variable "COMPUTER_CODE" above created? I assume it is different from computer to computer. I want to be able to programmatically delete this cache if it exists. ...

How insecure is web ?

I have just started writing socket programs. Came to know that single UDP packet has source port destination port and some MAC address representing router..etc. I wonder why anybody cannot create custom packets with a fake information in and send it over internet. I would like to know how safe are our PCs. What should be done to secure i...

How to make a C code to fetch some content from the internet?

Suppose I want my C code to fetch the headline from a website, like www.example.com How to do that? Can I write a program in C to do this? give me a start... ...

How to see the URL of a source code of a website?

I have a method that searches for movies in IMDB. Problem is, I only take into account if the site returns a page with movie OPTIONS. If the site automatically finds the movie in question, my program breaks. Is there a way for me to check the URL of source code in C#? ...

Javascript style.opacity undefined

I use Javascript and Mootools for creating a particular HTML page, which includes a javascript file that checks the opacity of an element for a certain operation. However, on IE, I face this issue of elem.style.opacity giving out a undefined value. Here is the operation I am doing, var elem = $('login'); alert(elem.style.opacity); i...

DownloadData() produces HTML different from the browser

I'm trying to download the source HTML of a website using the WebClient.DownloadData() method. My method is supposed to give me the source: public string GetSite(string URL) { Uri Site = new Uri(URL); byte[] lol = Client.DownloadData(Site); SiteSource = Encoding.ASCII.GetString(lol); return SiteSourc...

How to simulate a web browser so the website feeds me the correct HTML source?

I'm trying to webscrape a website and it appears to be feeding me bogus HTML with the WebClient.DownloadData() method. Is there a way for me to "fool" the website that I'm a browser of sorts? Edit: Adding this header still doesn't fix the issue: Client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET...

Internet Explorer Profiler

Is there any profiler sort of tool which can debug which javascript/object in the DOM is causing the Internet Explorer to hang/crash. The CPU usage is going to more than 60% and I want to know the reason behind it, which script/Flash Object is causing that. Thanks for the help. ...

moz-border-radius,moz-box-shadow in IE

Hello I am using moz-boder-radius(-webkit-border-top-left-radius) to add rounded divs to my website. these work fine in Mozilla, chrome and safari but as usual Internet explorer have to have some problem. Is there any such property to add rounded divs in Internet explorer. ...

Joomla poll not working with IE

On my joomla website the joomla poll extension (down,right) or any other joomla poll only works in Firefox,Safari and all the other browser but not in IE8 or lower versions. I need a poll on my site and 95% of my site visitors use IE8, its frustrating. How can i get any joomla poll to work in IE8 ? Its strange but IE8 displays the poll...

Could you give me an example of a WebClient downloading a website source code and filtering something asynchronously as to not freeze the GUI?

I've read some of the articles on MSDN but they're not quite what I need right now. Could you show me a simple application that downloads a website asyncchronously (WebClient.DownloadDataAsync) and then filters the TITLE tag of the site? I can't do this for the life of me, and I'm just trying to see a clear cut model. ...

Jquery slideToggle IE problem

Hi everyone, i got my jquery slideToggle working for Firefox. Ok it's not perfect, because when it slides down the performance is somehow jumpy. I tried different workarounds, but noone helped that right. So first question is, what could cause this little jumpiness in my code. And then the bigger problem is the display in IE. IE6 and I...

Expose PWA to the internet

Hi dose any one know hoe to expose the project web access to the internet or at least where should i start from ? ...