Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6095281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:47:40+00:00 2026-05-23T12:47:40+00:00

In mechanize we can set proxy like this: br = mechanize.Browser() br.set_proxies({http: joe:password@myproxy.example.com:3128, ftp:

  • 0

In mechanize we can set proxy like this:

br = mechanize.Browser()
br.set_proxies({"http": "joe:password@myproxy.example.com:3128",
"ftp": "proxy.example.com",})

How do we do the same for zope.testbrowser?

Many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:47:41+00:00Added an answer on May 23, 2026 at 12:47 pm

    zope.testbrowser is a wrapper around mechanize, and you can reach the wrapped mechanize browser via the mech_browser attribute:

     browser.mech_browser.set_proxies(dict(
         http="joe:password@myproxy.example.com:3128",
         ftp="proxy.example.com",
     ))
    

    Not tested, but the above should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using mechanize to submit a form like this... import mechanize br = mechanize.Browser()
I want to scrape this web page using Mechanize. The form element looks like
How can I print the values of the cookie/cookie_jar being set? Trying: ##my $cookie_jar=HTTP::Cookies->new(file
I set up a project according to the recommendation here: http://www.haskell.org/haskellwiki/Structure_of_a_Haskell_project How can I
I am using an http proxy and the Mechanize module. I initialize the mechanize
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
the following code raises the aforementioned error, how can I fix that? require 'mechanize'
Can you recommend any mechanism/technology/3rd party jar that does field validation (like field length
I have some code that is using mechanize and a password protected site. I
import lxml.html import mechanize, cookielib import multiprocessing browser = None def download(i): link =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.