Question

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.

Was it helpful?

Solution

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'

OTHER TIPS

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");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top