The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 20, 2019, 11:44:51 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Automatic Proxy Configuration - pac file  (Read 3707 times)
Bompa
Administrator
Lifer
*****
Offline Offline

Posts: 564


Where does this show?


View Profile
« on: June 23, 2009, 08:43:29 PM »

Anyone have any experience with a .pac file?

I have been trying for hours to get one working.  It seems neither msie nor
firefox are even reading the pac file.

It's just a js file, I should be able to just an alert in it like

alert('This is what an alert message looks like.');

and that should popup. (i think)

I have read numerous 'how-to's and have tried examples straight from site.

I have tried putting my pac file on a web host and i have tried several
paths on my hd

file://C:\proxy.pac
C:\proxy.pac
C:/proxy.pac

but I am still surfing without a proxy

any ideas?
Logged

"The most beautiful and profound emotion we can experience is the sensation of the mystical..." - Albert Einstein
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: June 23, 2009, 09:41:32 PM »

Yikes man... I've never dealt with a pac file ever. Sorry old friend.  Undecided
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
Bompa
Administrator
Lifer
*****
Offline Offline

Posts: 564


Where does this show?


View Profile
« Reply #2 on: June 23, 2009, 10:19:22 PM »

I'm still stuck and still researching this.


This is what I have in my pac file atm

Code:
javascript:alert ("Start of our PAC File");
    function FindProxyForURL(url, host)
        {
           javascript:alert ("Inside the function");
           return "PROXY isa.proxy.server.com:80";
       }


I got that from http://blogs.msdn.com/askie/archive/2009/02/16/automatic-proxy-configuration-script-failing-on-vista.aspx

I have saved that as proxy.pac on my hd and entered the path in my browser's lan config.
I have deleted the browser's cache and restarted the browser.

If my browser is processing the file, there should be an alert.

I get no alert.

This should be easy.

Bomps

« Last Edit: June 23, 2009, 10:35:46 PM by Bompa » Logged

"The most beautiful and profound emotion we can experience is the sensation of the mystical..." - Albert Einstein
Bompa
Administrator
Lifer
*****
Offline Offline

Posts: 564


Where does this show?


View Profile
« Reply #3 on: June 23, 2009, 10:49:20 PM »

Now the f'ing thing is working!   ROFLMAO

javascript:alert ("Start of our PAC File");


And using file://C:\dir\dir\proxy.pac in IE's lan settings

Also, this is working in the proxy.pac file

function FindProxyForURL(url, host) { return "PROXY 200.65.127.161:80; DIRECT"; }


Simple, one line js is working and if I use the file:// protocol.

A bit more testing and I shall rule the universe for sure.

Grin

Bomps
Logged

"The most beautiful and profound emotion we can experience is the sensation of the mystical..." - Albert Einstein
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #4 on: June 24, 2009, 08:03:41 AM »

Please be kind to us peons when you do.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!