Just looked at the documentation, and there's a Headers property - can you enumerate that, see if there's a User_Agent in there, and change the value?
Dino -----Original Message----- From: monotouch-boun...@lists.ximian.com [mailto:monotouch-boun...@lists.ximian.com] On Behalf Of coderprojects Sent: Monday, September 12, 2011 10:36 AM To: monotouch@lists.ximian.com Subject: Re: [MonoTouch] Converting ObjectiveC code to MonoTouch Hi, Thanks for the reply. I tried all req["User_Agent"] ="foo" Error CS0200: Property or indexer `MonoTouch.Foundation.NSUrlRequest.this[string]' cannot be assigned to (it is read-only) req.SetValueForKey(nsObject, "foo"); requires NSobject and I don't know how to convert forHTTPHeaderField:@"User_Agent"] to NSObject req.Headers[nsObjectKey] also requires NSObject Key I am trying to convert the code from the following URL http://stackoverflow.com/questions/478387/change-user-agent-in-uiwebview-iphone-sdk Thanks Art -- View this message in context: http://monotouch.2284126.n4.nabble.com/Converting-ObjectiveC-code-to-MonoTouch-tp3807631p3807718.html Sent from the MonoTouch mailing list archive at Nabble.com. _______________________________________________ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch