i think this is really going to depend on a number of circumstances. if you can provide more information, i think it would really help in understanding the situation a bit better.
i live in a very popular destination and vacation spot in Europe. needless to say, i have lots and lots of people who would like to come and visit. there are so many, in fact, that although i would love to be able to be a perfect host to all of them, the number of visitors in a year really can get out of control.
i live in a studio apartment with my boyfriend. while we do have a very comfortable and large guest mattress, in addition to a couch, this means that we don't have a separate guest bedroom...or any privacy when guests are here. any of my nearest and dearest friends are more than welcome to come stay with us at anytime. i love them, i want to see them, and i want to spend as much time with them as possible.
however, i also get requests (or very, very obvious hints) from people with whom i'm not especially close, from friends of friends (including people whom i don't actually know), and from others who are wealthy enough to make them more than capable of paying for their own hotels. it's not particularly nice if you get the feeling that you're kind of being used to give someone else a free vacation, especially if you are a good host and will be spending a potentially significant sum to host them properly, which is the only way i want to host in the first place.
to complicate things even more on our side, our business is very close to our apartment, and i wind up doing a lot of work from home (in that one large room). this can make things more difficult than they might otherwise be.
only you can know how close (or welcome) you are with this friend and how welcome you might be to stay in this person's home.
also, will you be traveling alone, or will you have friends with you?
dontknownuthin hit the nail on the head. you need to call you friend, chat like friends do, and then you can tell her that you're planning a trip to her city. let her know why you want to go. ask if she can recommend any cheap hostels in the area. if she offers for you to stay with her, great. if she recommends a hostel, well, you've got your answer.
personally, unless you're really close, i don't think it's in great taste to just ask if you can stay with the person flat out. they should have the opportunity to invite you. it might seem silly, but it can make a difference regarding how the host will feel about it.
by the way, if you do stay with her, i really do recommend that you bring a nice gift upon your arrival and/or treat her for lunch or dinner during your time there. it might seem small, but this will make a difference long term, especially if you want to go out to visit her on other occasions.
honestly, if it's just a night or two, it shouldn't be a problem. just make your plans clear. i've had people tell me the same thing, and they wound up staying for a week or two instead. believe it or not, this has happened to me on more than one occasion.
if she doesn't invite you, don't hate her for it. i'm sure she has her reasons. just meet up during your time there and enjoy your time together. if your relationship grows, she might have you stay with her the next time you're in town. btw, hostels are a travel net that anyone should be able to afford. they're not fancy, but they'll do in a pinch.
good luck!
promise to let us know how things go! you've got my curiosity going.