<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Pass additional header to URL in AGSTiledMapServiceLayer in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/pass-additional-header-to-url-in/m-p/573662#M4951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I need some help on AGSTiledMapServiceLayer.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a TiledMapsService that I need to invoke, it requires an custom setting to be passed in the request header for security.&amp;nbsp; I understand we can set URL to AGSTiledMapServiceLayer object but did not see a way to set the Request object. &lt;SPAN style="line-height: 1.5;"&gt;Is there any way to pass AGSRequest or to add additional headers directly? Are there any alternatives?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Eg:&lt;/P&gt;&lt;P style="text-align: left;"&gt;NSMutableDictionary *HeaderDictionary = [[NSMutableDictionary alloc] init];&lt;/P&gt;&lt;P style="text-align: left;"&gt;[HeaderDictionary setValue:@“&amp;lt;Header Value&amp;gt;” forKey:@“&amp;lt;Header Key&amp;gt;"];&lt;/P&gt;&lt;P style="text-align: left;"&gt;[AGSRequest setAdditionalUserAgentInfo:[NSString stringWithFormat:@"%@", HeaderDictionary]];&lt;/P&gt;&lt;P style="text-align: left;"&gt;[AGSRequest requestForURL:tiledMapServiceURL credential:nil resource:nil queryParameters:nil method:AGSRequestHTTPMethodGet cachePolicy:nil timeoutInterval:60.0 userHeaders: HeaderDictionary] ;&lt;/P&gt;&lt;P style="text-align: left;"&gt;//Now how do I set this Request in AGSTiledMapServiceLayer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2014 07:08:09 GMT</pubDate>
    <dc:creator>sumitzarkar</dc:creator>
    <dc:date>2014-10-31T07:08:09Z</dc:date>
    <item>
      <title>Pass additional header to URL in AGSTiledMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/pass-additional-header-to-url-in/m-p/573662#M4951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I need some help on AGSTiledMapServiceLayer.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a TiledMapsService that I need to invoke, it requires an custom setting to be passed in the request header for security.&amp;nbsp; I understand we can set URL to AGSTiledMapServiceLayer object but did not see a way to set the Request object. &lt;SPAN style="line-height: 1.5;"&gt;Is there any way to pass AGSRequest or to add additional headers directly? Are there any alternatives?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Eg:&lt;/P&gt;&lt;P style="text-align: left;"&gt;NSMutableDictionary *HeaderDictionary = [[NSMutableDictionary alloc] init];&lt;/P&gt;&lt;P style="text-align: left;"&gt;[HeaderDictionary setValue:@“&amp;lt;Header Value&amp;gt;” forKey:@“&amp;lt;Header Key&amp;gt;"];&lt;/P&gt;&lt;P style="text-align: left;"&gt;[AGSRequest setAdditionalUserAgentInfo:[NSString stringWithFormat:@"%@", HeaderDictionary]];&lt;/P&gt;&lt;P style="text-align: left;"&gt;[AGSRequest requestForURL:tiledMapServiceURL credential:nil resource:nil queryParameters:nil method:AGSRequestHTTPMethodGet cachePolicy:nil timeoutInterval:60.0 userHeaders: HeaderDictionary] ;&lt;/P&gt;&lt;P style="text-align: left;"&gt;//Now how do I set this Request in AGSTiledMapServiceLayer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 07:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/pass-additional-header-to-url-in/m-p/573662#M4951</guid>
      <dc:creator>sumitzarkar</dc:creator>
      <dc:date>2014-10-31T07:08:09Z</dc:date>
    </item>
  </channel>
</rss>

