|
|
- <h1>C</h1>
- <p>Below is an example of making a HTTP request to SITE_NAME from C#.</p>
- <div class="highlight"><pre><span></span><span class="k">using</span> <span class="p">(</span><span class="kt">var</span> <span class="n">client</span> <span class="p">=</span> <span class="k">new</span> <span class="n">System</span><span class="p">.</span><span class="n">Net</span><span class="p">.</span><span class="n">WebClient</span><span class="p">())</span>
- <span class="p">{</span>
- <span class="n">client</span><span class="p">.</span><span class="n">DownloadString</span><span class="p">(</span><span class="s">"PING_URL"</span><span class="p">);</span>
- <span class="p">}</span>
- </pre></div>
|