Using C # to communicate with a website

Until now I've done web programming exclusively (PHP, MySQL, Javascript), but I want to try my hand at application development, specifically something web enabled. Is it possible to write an application in C# that is able to communicate back and forth with, say, a PHP script on my website?


  • Short answer, yes.

    Depending on what you want to communicate with, you can use a REST or SOAP service, or something entirely custom.
  • Its all just sockets under the hood, and if specifically targeting web api's, you would need to adhere to http.
  • simply use System.Net.WebRequest i.e WebClient or HttpWebRequest/HttpWebResponse,
    you can use basic method such as POST and GET.

    I myself develops web crawler using this classes.
Sign In or Register to comment.