29 lines
552 B
C#
29 lines
552 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BS.Shared.AppSender
|
|
{
|
|
public static class OwnSoftSender
|
|
{
|
|
public static string Send(string url, string dataString)
|
|
{
|
|
string response;
|
|
|
|
using (WebClient client = new WebClient())
|
|
{
|
|
client.Encoding = Encoding.UTF8;
|
|
|
|
client.Headers.Add(HttpRequestHeader.ContentType, "application/xml");
|
|
|
|
response = client.UploadString(url, "POST", dataString);
|
|
}
|
|
|
|
return response;
|
|
}
|
|
}
|
|
}
|