Closed tomkralidis closed 10 years ago
I was able to isolate the error enough to figure out that this is an HTTP header issue on the SOS server's part.
The HTTP Accept header, when not specified by the client, means that the client will accept anything. This is not sent by urllib2.urlopen
by default, hence the error above. The SOS server seems to require Accept being explicitly passed, which appears to be incorrect as per the HTTP spec. FYI requests.get
does pass "Accept: \*/\*"
, but this doesn't make this a downfall of the current approach.
Provider notified. In the meantime, SOS tests changed in 0d2f948616470257644927df90b28a498cc204f0.