This code goes around for some time...
The problem is that Yahoo changed contract and now before exporting contact to csv they ask guptcha - you have to enter manually word from the picture they provide.
So in your code you simulate user actions:
1. login into Yahoo,
2. go to contact section,
3. export contacts,
4. read exported contact list
Except now between steps 2 and 3 you have to type in some phrase, which cannot be automated.
You can check/debug your code if you add lines [to save web output and see it in browser]:
right after getting
string thirdRes = Encoding.UTF8.GetString( thirdResponse );
System.IO.File.WriteAllText ("c:/y3.html", thirdRes);
System.Diagnostics.Process.Start("c:/y3.html");
Original idea, i think, was to automate user actions, - you can try to export yahoo contacts from your yahoo page and now you can see that user interaction is needed.
Yahoo provides some open api, but it requires temp session/token created by Yahoo, etc - see
http://developer.yahoo.com/oauth/guide/oauth-auth-flow.html[
^] ,
http://developer.yahoo.com/social/rest_api_guide/contacts-resource.html[
^]. I wasted a lot of time on this, cannot make it work. There are some posts like
http://gnillydev.blogspot.com/2007/10/yahoo-contact-import-class-in-c.html[
^]
and others, but none code from them is working right now...