title: Passing URL with parameter
body: <p>I am passing url with some string value and <code>NSInteger</code> value in this <code>url</code> but when I put <code>breakpoint</code> on this and I tab on trace then it show me this message <code>exc-bad-access</code> in <code>url</code> I given bold please see that 'bold' I want to pass there value:<br>
  <code>[ NSInteger day,NSInteger day1,NSString *fromDate1, NSString *fromDate1,NSString *OriginCode,NSString *DestinCode]</code>.</p>
  
  <p>I get all value on <code>url</code> when I put the <code>breakpoint</code> but when I step into <code>breakpoint</code> my app crashes, why it crash? Help me. Where am I wrong?</p>
  
  <pre><code>-(void)sendRequest
  
  {    
  
  
  
  
  
  
  
  
     stringWithFormat:@"http://www.google.com?AvailabilitySearchInputFRSearchView%24ButtonSubmit=Search%20For%20Flights%20&amp;AvailabilitySeast=",day,day1,DestinCode,"2011-09","2011-09",OriginCode];
     NSString *urlString = [NSString stringWithFormat:@"http://www.bookairways tickt.com/Sales/FRSearch.aspx?AvailabilitySearchInputFRSearchView%24ButtonSubmit=Search%20For%20Flights%20&amp;AvailabilitySearchInputFRSearchView%24DropDownListMarketDay1=**%i**&amp;AvailabilitySearchInputFRSearchView%24DropDownListMarketDay2=**%i**&amp;AvailabilitySearchInputFRSearchView%24DropDownListMarketDestination1=**%@**&amp;AvailabilitySearchInputFRSearchView%24DropDownListMarketMonth1=**%@**&amp;AvailabilitySearchInputFRSearchView%24DropDownListMarketMonth2=**%@**&amp;AvailabilitySearchInputFRSearchView%24DropDownListMarketOrigin1=**%@**&amp;AvailabilitySearchInputFRSearchView%24DropDownListPassengerType_ADT=1&amp;AvailabilitySearchInputFRSearchView%24DropDownListPassengerType_CHD=0&amp;AvailabilitySearchInputFRSearchView%24DropDownListPassengerType_INFANT=0&amp;AvailabilitySearchInputFRSearchView%24RadioButtonFlowSelector=FlightAndCar&amp;AvailabilitySearchInputFRSearchView%24RadioButtonMarketStructure=RoundTrip&amp;AvailabilitySearchInputFRSearchView%24discountPax=0&amp;__EVENTARGUMENT=&amp;__EVENTTARGET=&amp;__VIEWSTATE=%2FwEPDwUBMGRkg4UKvNNb1NbM14%2F2n9zUxhNQ%2B%2BA%3D&amp;errorlist=",day,day1,DestinCode,fromDate1,fromDate2,OriginCode];
     //urlString=[urlString stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];
     NSURL *url = [NSURL URLWithString:urlString];
     NSLog(@"************url:%@",url);
  
      NSURLRequest *theRequest=[NSURLRequest requestWithURL:url
                                     cachePolicy:NSURLRequestUseProtocolCachePolicy
                                  timeoutInterval:60.0];
     NSURLConnection *theConnection=[[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
     if (theConnection) {
        webData = [[NSMutableData data] retain];
        NSLog(@"%@",webData);
     } else {
  
     }   
  
  }
  </code></pre>