I\'m working on a feature which requires me to get the contents of a webpage, then check to see if certain text is present in that page. It\'s a backlink checking tool.
Without application code it's difficult to say what's happening.
Try using trim() on the strings to remove trailing whitespace, which is invisible to the naked eye.
You may find strcmp gives better results as well.