Languages

Menu
Sites
Language
Get html from url
Hi! I tried do get html from url to a Jsoup Document many times, but i get segmentation fault during the .Get (Jsoup.Connect(url).Get())...what lib i have to use? And how can i get the details of segmentation fault in visual studio? Lib tested: Jsoup, Dcsoup, Nsoup
View Selected Answer

Responses

6 Replies
Juwon(Julia) Ahn

Did you use Jsoup nuget package? It's for Jsoup Binding for Xamarin Android. It doesn't support Tizen.

[How to check log message]

1. Visual Studio 2017 > Tools > Tizen > Tizen Log Viewer 

You can filter logs with "DOTNET_LAUNCHER" Tag to check "Console.WriteLine".

2. use sdb shell > dlogutil command

    e.g. dlogutil DOTNET_LAUNCHER

  

feduss
Yes...what package i have to use on Tizen?
Juwon(Julia) Ahn

Please use NSoup.Standard.

feduss
Already tried without success...i get segmentation fault during .get() on the result of .Connect(url)
feduss

Mark as answer
feduss

Solved by using this code:

WebClient wc = new WebClient();
string html = wc.DownloadString(url);
Document doc = NSoupClient.Parse(html);