Skip to main content

Microsoft Silverlight

Answered Question WebClient headers do not work on Safari (Mac)RSS Feed

(0)

sebschmitt
sebschmitt

Member

Member

20 points

23 Posts

WebClient headers do not work on Safari (Mac)

 Hi,

 the following code does not append a header to the http request, if Silverlight 3 Beta runs in a Safari on a Mac:

WebClient currentWebClient = new WebClient();
currentWebClient.Headers["somename"] = "somename;
currentWebClient.UploadStringAsync(new Uri(urlString), "POST", poxDataString);

It runs fine in Firefox / Internet Explorer on Windows and Mac machines. I don't know, if this problem already existed in Silverlight 2, however I found a post which implies that: http://silverlight.net/forums/t/20191.aspx

Any ideas?

Best, Sebastian
 

sebschmitt
sebschmitt

Member

Member

20 points

23 Posts

Re: WebClient headers do not work on Safari (Mac)

I tried to verify the error with a test app, however there it seems to work. I'll do further investigations.

sebschmitt
sebschmitt

Member

Member

20 points

23 Posts

Answered Question

Re: Re: WebClient headers do not work on Safari (Mac)

It seems like there is no problem with Silverlight, but some hackers trying to get unauthorized access to our web services caused exceptions that looked like there was no header sent from our Silverlight client.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities