- Home /
Question by
DownER149 · Dec 09, 2018 at 08:54 AM ·
httpwebrequest
am i using Http request correctly
its been awhile since i worked on this, i remember that when using http requests it wouldnt wait for my request to be finalized. so i spilt it into two functions , and it works, altho it seems slow ... i dont know if its the IEnumerator or my sorry excuse for a server .
i guess what i'm asking is.. does this look wrong?
[code]
public void Load(string V)
{
WWW www = new WWW(url);
StartCoroutine(Load2(www));
}
private IEnumerator Load2(WWW www)
{
yield return www;
string[] A = www.text.Split('|');
foreach (var B in A)
{
Load3(B);
}
}
[/code]
Comment