Changeset 4374 for trunk


Ignore:
Timestamp:
Mar 19, 2020 10:51:52 AM (4 years ago)
Author:
toby
Message:

use https before http

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r4372 r4374  
    22282228
    22292229def postURL(URL,postdict):
    2230     '''Posts a set of values as from a web form. If access fails to an http
    2231     site the access is retried with https
     2230    '''Posts a set of values as from a web form. If access fails to an https
     2231    site the access is retried with http
    22322232    :param str URL: the URL to post; typically something
    22332233       like 'http://www.../dir/page?'
     
    22622262        finally:
    22632263            if r: r.close()
    2264         if URL.startswith('http:'):
     2264        if URL.startswith('https:'):
    22652265            repeat = True
    2266             URL = URL.replace('http:','https:')
     2266            URL = URL.replace('https:','http:')
    22672267    else:
    22682268        return None
  • trunk/SUBGROUPS.py

    r4372 r4374  
    2222import GSASIIpath
    2323GSASIIpath.SetBinaryPath()
    24 submagSite = 'http://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_general_GSAS.pl?'
     24submagSite = 'https://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_general_GSAS.pl?'
    2525
    2626def GetNonStdSubgroups(SGData, kvec,star=False,landau=False,maximal=False):
  • trunk/kSUBGROUPSMAG.py

    r4372 r4374  
    2424import GSASIIpath
    2525GSASIIpath.SetBinaryPath()
    26 submagSite = 'http://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_k.pl'
     26submagSite = 'https://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_k.pl'
    2727
    2828class TableParser(HTML.HTMLParser):
Note: See TracChangeset for help on using the changeset viewer.