Questions tagged [nsurlrequest]

on iOS , NSURLRequest objects represent a URL load request in a manner independent of protocol and URL scheme. NSURLRequest encapsulates two basic data elements of a load request: the URL to load, and the policy to use when consulting the URL content cache made available by the implementation.

1095 questions
0
votes
1 answer

difference between nsurlconnection and browser access?

I am developing a very simple application which accesses a written url. So i am wondering what is the difference between access by nsurlconnection and access by just using browser. cause some sites respond but they don`t send data when i used the…
0
votes
2 answers

iOS Bad URL for NSUrlConnection

I have a url in an NSString called myUrl. When I NSLog myUrl I see the following: http://dl.dropbox.com/u/57665723%2FChocolatesRUs%2FJellies%2FUn-sugared%2Fgen%20no%20sugar.pdf I then try connecting using this url as follows: NSURL* url = [ NSURL…
whatdoesitallmean
  • 1,586
  • 3
  • 18
  • 40
0
votes
1 answer

Rails app session not recognized for iOS NSURLRequests

I have a simple rails app with a single controller. I have a "before filter" for some of the methods of my controller, where I check if the user is logged in by looking at the session object: @user = User.where(:id => session[:user_id]) if…
0
votes
1 answer

how to post a login to a web form and keep the session -iphone sdk

iphone sdk question: I need to login to a web app and keep the session (session cookie) and then get an xml feed. I haven't found a good example for this.
phil swenson
  • 8,564
  • 20
  • 74
  • 99
0
votes
1 answer

NSURLConnection (Syncronous Request) returns (null)

I want to get HTML from website. I wrote below code but this returns (null). NSString *strURL = @"http://www.googole.com"; - (NSString *)getHtml { NSURL *url = [NSURL URLWithString: strURL]; NSURLRequest *req = [NSURLRequest…
Feel Physics
  • 2,783
  • 4
  • 25
  • 38
0
votes
2 answers

How to implement HTTP Post in iPhone as android HTTPPost?

I have sample code for sending key pair values as array list on HTTTP restful web service using POST method like below. public void postData() { // Create a new HttpClient and Post Header HttpClient httpclient = new DefaultHttpClient(); …
Shanmugaraja G
  • 2,778
  • 4
  • 31
  • 47
0
votes
2 answers

Using NSURLRequest+NSURLConnection seems overkill for a webcall with no data return

All, This might seems very straightforward but I have already gone through the URL loading system program guide and the various NSURL.... classes and not found my answer. I am just trying to do a simple call from the app to a website to reserve a…
Khaled Barazi
  • 8,681
  • 6
  • 42
  • 62
0
votes
2 answers

Load WebView with Variable

I am trying to accomplish a very simple task of loading a WebView that has a variable. I am hoping to pass the variable from objective-c to a remote PHP file. The code I am using does not seem to work. The variable is valid, but I cannot get it to…
Brandon
  • 2,163
  • 6
  • 40
  • 64
0
votes
0 answers

How does UIWebView process imags found in HTML?

I would like to know how the UIWebView handles images when receiving HTML from a standard NSURLRequest. For instance if I had the following HTML;
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
0
votes
2 answers

Pause downloads in AFNetworking - objective c

How to pause downloads in AFNetworking? I'm downloading file with AFHTTPRequestOperation, but there is only cancel method. How to pause and resume it?
Timur Mustafaev
  • 4,869
  • 9
  • 63
  • 109
0
votes
1 answer

Unable to download file to app directory in iPhone

I am new to iPhone, I am currently developing an iPhone app and would like to implement the ability to download file from the url. I have created the UIWebView, when i click on download link in the webview download will start and i am saving that…
Krunal
  • 6,440
  • 21
  • 91
  • 155
0
votes
1 answer

How can I make multiple authenticated Requests to web server with one NSURLConnection?

I would like to to get fetch JSON from http://mycompany.com/jsonpage1..etc. The webserver requires initial login http://mycompany.com/login, and after that a cookie is maintained for the user. How do I get this behavior with NSURLCredentialStorage…
0
votes
1 answer

Can't set cookie in NSURLRequest

In my program I call two functions, the first a a login, the second one a function to parse data. To store session, with the login function I save my cookies with this: - (void)connection:(NSURLConnection *)connection…
aur0n
  • 463
  • 3
  • 14
  • 25
0
votes
1 answer

NSJSONSerialization , Looks fine from IOS end but not escaped on Rails 3 server

Hi guys so i am using NSJSONSerialization dataWithJSONObject:jsonDict options:NSJSONWritingPrettyPrinted error:nil] command to write the json. It looks fine and when i post to the Rails server the \"first name\" is still there. Can any one…
0
votes
2 answers

NSURLConnection not downloading all data

How comes when i run this code, the data that gets downloaded seems to have cropped off some information from the first row? NSURL *url = [NSURL URLWithString:@"http://ichart.finance.yahoo.com/table.csv? …
JH95
  • 489
  • 1
  • 7
  • 24