This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var client = new HttpClient()) | |
{ | |
var values = new List<KeyValuePair<string, string>>(); | |
values.Add(new KeyValuePair<string, int>("n", "42")); | |
values.Add(new KeyValuePair<string, string>("s", "string value")); | |
var content = new FormUrlEncodedContent(values); | |
var response = await client.PostAsync("http://www.domain.org/receiver.aspx", content); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static WebRequest request; | |
private static void sendAndReceive() | |
{ | |
// The request with a big timeout for receiving large amout of data | |
request = HttpWebRequest.Create("http://localhost:8081/index/"); | |
request.Timeout = 100000; | |
// The connection timeout | |
var ConnectionTimeoutTime = 100; | |
Timer timer = new Timer(ConnectionTimeoutTime); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function close_popupWindow() { | |
window.self.opener = window.self; | |
window.self.close(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* FACEBOOK Loading | |
*/ | |
window.fbAsyncInit = function () { | |
FB.init({ | |
appId: FB_APPID, | |
fileUpload: true, | |
status: true, // check login status | |
cookie: true, // enable cookies to allow the server to access the session | |
xfbml: true, // parse social plugins on this page |
NewerOlder