opendoor-labs / rets

RETS Python 3 Client
MIT License
89 stars 43 forks source link

Option to not pass 'RETS-UA-Authorization', and parse non-utf8 xml #61

Closed geobio closed 3 years ago

geobio commented 3 years ago

I found one MLS RETS implementations will raise an error if you pass RETS-UA-Authorization where there is a User-Agent but not a User-Agent-Password. Most MLS don't have an issue with it, so default should be to send RETS-UA-Authorization.

Additionally, this MLS also returns non-standard encoding in case of errors, but otherwise returns standard non-problematic encoding if the response is normal. Therefore, I added an exception in the case of non-standard response to parse it as raw binary, which is successful.

Details from RETS 1.7.2 specification regarding RETS-UA-Authorization:

Screen Shot 2021-06-03 at 11 53 05 PM Screen Shot 2021-06-03 at 11 55 21 PM

testing passes:

Screen Shot 2021-06-04 at 12 42 25 AM