Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-07-2016, 10:54 AM
will will is offline
Registered User
 
Join Date: Dec 2016
Posts: 3
Python http post/get requests??

I can't import urllib2 or urllib because _socket is missing. Just curious if there's another python module which is supported which will allow me to make http requests?


thanks,
will
Reply With Quote
  #2  
Old 12-07-2016, 12:24 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,474
Hi will,

What version of SecureCRT are you using?

On what platform/OS?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 12-07-2016, 02:24 PM
will will is offline
Registered User
 
Join Date: Dec 2016
Posts: 3
I'd prefer to keep this on windows for logistical reasons, but I could do this on mac or linux as well. Is there a work around for any platform?
Reply With Quote
  #4  
Old 12-08-2016, 07:11 AM
will will is offline
Registered User
 
Join Date: Dec 2016
Posts: 3
...and 8.0.2 if that matters.
Reply With Quote
  #5  
Old 12-08-2016, 09:50 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,474
Hi will,

SecureCRT/Windows is the only platform where we include Python. Therefore, if able to use SecureCRT/Mac or SecureCRT/Linux, assuming the default Python environment includes _socket module, your problem might be solved.

Otherwise, since I am not aware of all Python modules available, we will have to leave it up to community response as to whether there are alternative modules which support http requests.

I have added this thread to a feature request in our product enhancement database to add native support for _socket Python module on Windows. Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct email notification, send an email to support@vandyke.com and include "Feature Request - Forum Thread #12554" in the subject line or use this form from the support page of our website.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #6  
Old 09-29-2020, 12:14 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,474
Hi all,

I wanted to let you know the __socket module should be available as of SecureCRT v9.0, currently in beta 1 release, since this support was added:

Changes in SecureCRT 9.0 (Beta 1) -- September 24, 2020
-------------------------------------------------------
New Features:

  • Windows: Added support for Python 3. Python 3.8(available at python.org) must be installed and the script's first line must be: # $language = "python3". Since support for Python 3 is provided through an external module, Python 3 libraries can be used in SecureCRT scripts.

Note that this is Windows only support at this time. In fact, we released beta 1 installers *only* for Windows. We hope to include all platforms in later releases.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:47 AM.