Jump to content

Recommended Posts

Posted

I was trying to run a python prog to post to a website from a virtual vmware w2k3 server and it was giving connection error.

 

During investigation I found pip wouldn't install but at least gave me clue in that it mentioned our old cahcepilot proxy server 10.81.85.240 in the error message

 

Problem is - I can't find where to disable it!

 

I tried using proxycfg but it said I wasn't using any proxy server and that I had a direct connection

 

Can any old timers remember where else it may be set on a w2k3 server?

 

 

Simon

(Its not set in IE LAN Settings)

Posted

Proxycfg tool? Would be under registry in

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings

I thinky

 

Steve

  • Thanks 1
Posted

Found it - it was enabled in

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

 

:)

 

All works now - my Python script can now send out heartbeat messages using dweet :)

https://dweet.io/follow/cycystg

 

import urllib
import urllib2
import time
url = 'https://dweet.io/dweet/for/cycystg'

while True:
   data = urllib.urlencode({'HBP CL2KSRV01' : time.asctime()})
   content = urllib2.urlopen(url=url, data=data).read()
   print content
   time.sleep(1800)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...