Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Perl script to add sock proxy settings for firefox

by Pretty_Boy_Hacka (Initiate)
on Jun 06, 2014 at 19:48 UTC ( [id://1089103]=perlquestion: print w/replies, xml ) Need Help??

Pretty_Boy_Hacka has asked for the wisdom of the Perl Monks concerning the following question:

I get the following error message when attempting to assign an IP address to the sock proxy configuration:

MozRepl::RemoteObject: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) nsIPrefBranch.setIntPref at ./Proxy_settings_vs_1_5.pl line 30.

Below is a snippet of my code: $prefs->setIntPref('network.proxy.socks', 23.19.58.245),"\n";

what is the expected data in this section? Is the sytax wrong?

I tried :

$prefs->setIntPref('network/proxy.socks = 23.19.58.245',"\n");

but that gives me the same results. not sure how to resolve this. Any help will be appreciated.

Replies are listed 'Best First'.
Re: Perl script to add sock proxy settings for firefox
by moritz (Cardinal) on Jun 06, 2014 at 20:25 UTC

      when I do it that way this is the error message I get:

      Proxy type 1 MozRepl::RemoteObject: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) nsIPrefBranch.setIntPref at ./Proxy_settings_vs_1_5.pl line 31.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1089103]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-25 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found