Parse HTTP Get Request

Set a Boolean to true when you find STA
don't nest your ifs, you can have else clauses
At the end of your while loop if the Boolean is true you will likely have ID and Pass set up as well.