No link to the hardware! Although I know what the RN171 is and have worked with it in the past, I don't have the datasheet ready. You have to supply that information.
Have you tried the WiFly family of libraries? Where did you buy the hardware? Didn't they link to a library they suggest? Doesn't that library offer a web server example?