문제

How do you add headers to the Windows Phone web browser control? I want to add two headers, fore and back. Right now I add one header by using this:

browser.Navigate(newUrl, null, "fore:red");

See documentation

But how would would I separate two headers? The third parameter of the Navigate method is called extraHeaders which implies more than one, but I don't know how to separate them.

도움이 되었습니까?

해결책

The answer from Microsoft can be found here: http://support.microsoft.com/kb/172998 and it tells that the separator is a carriage return '\n'

다른 팁

I kept guessing and eventually figured out the separator character was a new line. ("\n"). No help from Microsoft's documentation. Now my code is something like:

 browser.Navigate(newUrl, null, "fore:red\nback:blue");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top