ทดลองแก้ไข ว่าได้จะได้ผลหรือไม่

This commit is contained in:
Nakorn Rientrakrunchai
2020-03-12 15:19:37 +07:00
parent 48f1efbc05
commit e30e8ea575
9 changed files with 27 additions and 9 deletions

View File

@@ -15,6 +15,7 @@ using TodoAPI2.Models;
using System.Data;
using Microsoft.Extensions.Configuration;
using System.IO;
using System.Net;
namespace TodoAPI2.Controllers
{
@@ -95,7 +96,8 @@ namespace TodoAPI2.Controllers
try
{
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized();
var httpclient = MyHelper.getHttpClient(Configuration);
//var httpclient = MyHelper.getHttpClient(Configuration);
var httpclient = new WebClient();
string mainurl = Environment.GetEnvironmentVariable("JasperReportServer_MainURL");
string reportsite = Environment.GetEnvironmentVariable("JasperReportServer_reportsite");
string username = Environment.GetEnvironmentVariable("JasperReportServer_username");