Changeset 1053:b2375bf26604


Ignore:
Timestamp:
04/19/22 14:36:56 (3 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

PilotWeb NOTAM query works again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/web.py

    r1044 r1053  
    622622              (icao.upper(),)
    623623
    624             f = urllib.request.urlopen(url, timeout = 10.0, cafile=certifi.where())
     624            request = urllib.request.Request(url, headers = {
     625                "cookie": "akamai_pilotweb_access=true;"
     626            });
     627            f = urllib.request.urlopen(request, timeout = 10.0, cafile=certifi.where())
    625628            try:
    626629                data = f.read(16384)
Note: See TracChangeset for help on using the changeset viewer.