Click here to Skip to main content
15,889,838 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
I need to post & download a webpage using simply socket, not httpwebrequest, as I need to use this in multithreaded code.

Can anyone give me sample code on how to use sockets

Thanks
Posted
Updated 25-May-11 9:54am
v3
Comments
Dalek Dave 25-May-11 15:54pm    
Edited for Grammar and Readability.

Your kind of looking to write your own web client, but there's no need to. The existing web client classes can be used in a multithreaded environment.

You cannot use the WebBrowser control (in the ToolBox) in anything other than the UI thread.
 
Share this answer
 
You will have to clarify your need since there is no reason I can see why seperate HttpWebRequest can't be used in multiple threads.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900