Changeset 4374 for trunk/GSASIIIO.py


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

use https before http

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.