• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLConnection and FTP directory content?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection and FTP directory content?


  • Subject: Re: NSURLConnection and FTP directory content?
  • From: Dirk Musfeldt <email@hidden>
  • Date: Tue, 16 Dec 2008 14:23:22 +0100

Alex,

this is sample snippet with a synchronous request, an asynchronous request gives basically the same result :

NSURL * theURL = [NSURL URLWithString: @"ftp:// email@hidden/"];
NSURLRequest * request = [[[NSURLRequest alloc] initWithURL: theURL] autorelease];
NSURLResponse * response = nil;
NSError * error = nil;
NSData * resultData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];


[resultData length] is always 0 no matter what.
This is even true if I change the URL to @"ftp://does.not.exist/";.



Am 16.12.2008 um 13:56 schrieb Alexander von Below:

I will gladly try if you could post some tiny sample code

Alex

Am 16.12.2008 um 12:01 schrieb Dirk Musfeldt:

Hi all,

I use NSURLConnection with a FTP request to get a directoy listing.
This was new to Leopard but suddenly stopped working with 10.5.6.

Is it just me? Is this intentional or a bug? I couldn't find any details in the release notes.


Regards Dirk _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden





Mit freundlichen Grüßen Dirk Musfeldt

--

Meilenstein Mac OS Software

Neue Strasse 5
D-31582 Nienburg
Tel: +49 (0) 5021 91 24 44
Fax: +49 (0) 5021 91 24 45
<http://www.meilenstein.de/>

Geschäftsführer:
Georg Hennig, Dirk Musfeldt, Christian Weykopf

Amtsgericht Walsrode, 8 HRB 31265
USt-ID: DE 223 596 242

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSURLConnection and FTP directory content? (From: Dirk Musfeldt <email@hidden>)
 >Re: NSURLConnection and FTP directory content? (From: Alexander von Below <email@hidden>)

  • Prev by Date: Re: bsd sockets + selecting network interface
  • Next by Date: NKE ipfilter questions
  • Previous by thread: Re: NSURLConnection and FTP directory content?
  • Next by thread: Re: NSURLConnection and FTP directory content?
  • Index(es):
    • Date
    • Thread