Re: How to upload dictionary to online URL
Re: How to upload dictionary to online URL
- Subject: Re: How to upload dictionary to online URL
- From: Satoshi Matsumoto <email@hidden>
- Date: Sun, 30 May 2004 08:05:57 +0900
Hi Keith,
on 04.5.30 6:51 AM, Nicko van Someren at email@hidden wrote:
>
> I have tried and tried, but it will not upload, even to a very simple
>
> URL:
>
>
>
> ftp://ftp.crewdog.com/html/xxx.plist
>
>
I've never been able to get writeToURL: to work to anything other than
>
a local URL either. Worse, I've not been able to find any
>
documentation that states what URL schemes are expected to work. Given
>
the recent discussions around here on the fact that the NSURLRequest
>
code does not support PUT, despite looking like it should, I suspect
>
that the plan is for this to all work one day but at the moment it does
>
not.
I have tested the writeToURL for a remote URL with following code.
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
@"content1", @"key1",
@"content2", @"key2",
nil];
NSURL *url = [NSURL
URLWithString:@"ftp://<username>:<password>@<host>/<path>"];
BOOL done = [dict writeToURL:url atomically:YES];
But it does not work!
Sorry for my wrong comment.
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.