See https://github.com/tronikos/opower/issues/47
I did some testing on the headers and it seems that next to the Cookie header the Referer header also needs to be present. If it is not it will give a 500 error.
Specifically Referer: https://www.coned.com/ which is already used in the code above, so I reused that and tested
See https://github.com/tronikos/opower/issues/47 I did some testing on the headers and it seems that next to the
Cookie
header theReferer
header also needs to be present. If it is not it will give a 500 error.Specifically
Referer: https://www.coned.com/
which is already used in the code above, so I reused that and tested