Note that there are some explanatory texts on larger screens.

plurals
  1. POWhere is any WebClient on XCode on iPad
    primarykey
    data
    text
    <p>I am looking for anything like <a href="https://stackoverflow.com/questions/4247724/net-webclient-where-is-downloadstring">.NET WebClient: Where is DownloadString?</a> on XCode.</p> <p>Just one URL to send and one String to get. I have working solution on iPhone and one on Mac Project but on iPad it does not work.</p> <p>I found <a href="https://github.com/pokeb/asi-http-request" rel="nofollow noreferrer">https://github.com/pokeb/asi-http-request</a> but it throws errors in XCode 4.1 about <code>release is not supported</code>.</p> <p>Any suggestions to download website on iPad project with HighLevel access?</p> <p>What class an be used in case of ASIHTTPRequest?</p> <pre><code>-(NSString*) DownloadString:(NSString *)UrlString; { NSURL *url = [NSURL URLWithString:UrlString]; // Create a request ASIHTTPRequest* myRequest = [ASIHTTPRequest requestWithURL:url]; // Start the request [myRequest startSynchronous]; // Request has now finished NSString *Result = [myRequest responseString]; return Result; } </code></pre> <p><strong>* SOLUTION (thanks to Francesco) *</strong></p> <pre><code>NSString *UrlTargetString = @"http://www.goldengel.ch"; NSURL *UrlTarget = [NSURL URLWithString: UrlTargetString]; NSError* error = nil; NSString* text = [NSString stringWithContentsOfURL:UrlTarget encoding:NSASCIIStringEncoding error:&amp;error]; if( text ) { NSLog(@"Text=%@", text); } else { NSLog(@"Error = %@", error); } </code></pre> <p>Response / Log is: </p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html&gt;....&lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload