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

  • SEARCH
  • Home
  • 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 9156079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:42:23+00:00 2026-06-17T12:42:23+00:00

from win32com.client import Dispatch winhttp = Dispatch(‘winhttp.winhttprequest.5.1’) print winhttp.Option(6) #True winhttp.Option(6) = False #SyntaxError

  • 0
from win32com.client import Dispatch

winhttp = Dispatch('winhttp.winhttprequest.5.1')

print winhttp.Option(6) #True

winhttp.Option(6) = False #SyntaxError  <----------------how to set Option(6) to false

print winhttp.Option(6)

winhttp.Open('GET', 'http://google.com', False)
winhttp.Send()

print winhttp.responsetext

===========================================

output:

invalid syntax: winhttp.py, line 13, pos 11 File
“c:\Users\***\Desktop\winhttp.py”, line 13, in ? set
winhttp.Option(6) = False

how to do it? 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-06-17T12:42:24+00:00Added an answer on June 17, 2026 at 12:42 pm

    This should work:

    winhttp.SetOption(6, False)
    

    Unless you have some really good reason for using winhttprequest, I’d use something out of the Python standard library, or better yet install the requests library. You will find these options much easier to deal with.

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

Sidebar

Related Questions

In Python 2.4, I can do... from win32com.client import Dispatch Apparently win32com does not
I have this code from win32com.client import Dispatch connection_string = Provider=SQLNCLI;server=%s;initial catalog=%s;user id=%s;password=%s%(server,db_name,user,pwd) dbConn
I'm trying to download file with Python using IE: from win32com.client import DispatchWithEvents class
I'm accessing a QuickBooks file from code using this call win32com.client.Dispatch(QBXMLRP2.RequestProcessor) I plan to
I'm trying to call the text to speech API from Python using win32com.client. The
I'm trying to get some attributes by ldap query as follows: import win32com.client ldap=SELECT
Here is a COM server implemented in Python: from win32com.server.exception import COMException import pythoncom
From this context: import itertools lines = itertools.cycle(open('filename')) I'm wondering how I can implement
from fabric.api import sudo, put, run def install(): run('source /home/user/.virtualenvs/demo/bin/activate') run('pip install requests') if
I'm using win32com.client to control an IE instance in Python. How can I click

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.