分享使你變得更實在,可以使其他人感到快樂,分享是我們的動力。今天就來分享你的資訊、圖片或檔案吧。
各位前輩好:
請問一下我最近學習XAMARIN,最近再用XAMARIN測試連線ASP.NET CORE API,
不知道為什麼如果使用
HttpResponseMessage response = await client.GetAsync("http://192.168.10.xxx/api/Usermanage");
IP的方式會出現錯誤:An error occurred while sending the request.
但如果使用
HttpResponseMessage response = await client.GetAsync("http://hostname/api/Usermanage");
竟然可以正確存取到API。 ... |