I've done this sort of thing and it does work well. The caveat is you usually need a cookie/token after logging in, so you still need to fake that part as well as manage the session state.
It does work well, though some sites certainly detect the behavior after a while.