Read female authors and understand how they write and how they reason out problems and resolutions. The way Jane Austen and John Keats emotionally view the world is different considerably, beyond their writing styles and although they wrote during a similar period of time.
Some of the most articulate observations made about the female character are made by some of the most articulate females in their writings either directly or indirectly.
Though no example is comprehensive and no rule definite, here is a useful example at showing counterpoint between genders (though in all honesty the entire book is short enough to be read in a day or two and in my opinion is worth it) Pride and Prejudice Chapter 45.
Avoid stereotypes and do not cast your characters based on your observing your peers. You are not trying to create people you are trying to create characters. As such you are trying to make a point about some part of human behavior (ideally) or drawing an emotional focus to a general behavior rather than an individual. It is much more important your audience remembers how they feel about your work than if they remember the characters individually, especially non-heroic figures (a distinction I make because not all protagonists are necessarily so important). Make sure first and foremost your character is create the emotional context you desire to further the immersion of your writing and if not rethink your approach.
Finally, on a note of personal and entirely subjective opinion, I usually consider whether or not I want my work to challenge a view on a gender, and if I do I will make a point of establishing a marked difference between female and male roles. If the point of gender is non important and simply a point of characterization for the sake of variety (think of it as character affirmative action), it would be more advisable to not make the female character as different as you would originally believe necessary. In all honesty, people's behaviors and personalities vary much more based on external factors like their upbringing than their gender (I would wager there's no universal behavior every woman I have ever met possess) so it is not so important that the behavior of a female is markedly different than a male's behavior.