John Starich
67e527c855
Support carriage returns on new lines
2019-06-26 06:23:52 -04:00
Aaron Lindsay
22a6d65b98
Add Hack for Discover
...
Discover requires an exact set of headers in exact order, or it returns
HTTP 403.
2018-10-08 05:55:08 -04:00
Aaron Lindsay
d8491bed1d
Make Client an interface instead of a struct
...
This makes it easier to maintain per-institution hacks that start
interacting with each other if you try to do them all in the same client
code. This commit also breaks out the existing Vanguard hack into its
own Client implementation.
2018-10-03 10:18:54 -04:00
Aaron Lindsay
94a77ac754
Add BasicClient, update Client to be interface
...
This paves the way for more easily implementing different clients for
different financial institutions
2018-10-02 20:55:25 -04:00
Aaron Lindsay
88e5521348
client.go: remove unused defaultClient var
2018-10-02 20:33:33 -04:00
Aaron Lindsay
1cc508c6d3
Don't export Client's rawRequestCookies method
...
It is used to fix bad behavior and should not be exposed
2018-10-02 20:20:07 -04:00
Aaron Lindsay
fa72af4f6c
client: Retry HTTP requests for empty responses with cookies
...
This works around a particular FI's penchant for JSESSIONID cookies
2017-09-01 08:41:15 -04:00
Aaron Lindsay
0eba6741f2
Make the OFX spec version an 'enum'
2017-04-17 10:54:20 -04:00
Aaron Lindsay
f64d19ed8d
client: `golint`
2017-04-16 20:38:56 -04:00
Aaron Lindsay
cc90da4ed1
s/Id/ID/
2017-04-12 21:40:42 -04:00
Aaron Lindsay
47f1b82c0b
Check HTTPS is always used
2017-04-01 21:33:56 -04:00
Aaron Lindsay
119c01f99b
Make setting request fields from Client a Request method
...
This also makes it possible to call this method for testing without
making an HTTP request.
2017-03-29 08:56:35 -04:00
Aaron Lindsay
753249c16e
client: Add RequestNoParse()
2017-03-22 19:56:59 -04:00
Aaron Lindsay
bd10b644a9
Improve comments
2017-03-17 21:36:20 -04:00
Aaron Lindsay
add6036729
Move client to own file
2017-03-16 19:31:26 -04:00