• 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: autentification problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autentification problem


  • Subject: Re: autentification problem
  • From: Alexander Spohr <email@hidden>
  • Date: Mon, 2 Feb 2009 11:45:15 +0100

The strings are not ok. There is no \ in any valid URL, it is an error. That is _only_ working on windows file paths.
Try using / instead.


	atze

ps file:///\\ looks wrong as well.


Am 02.02.2009 um 11:32 schrieb Valentin Dan:

Hi,



I have a problem when loading pictures from a server.



I'm doing this in code, but I also tried to load them from "Safari" and
"Firefox" and neither succeeded so the code may not be the problem.




I have paths like: \\10.1.1.11\SomeFolder\FileName.jpg
<file:///\\10.1.1.11\SomeFolder\FileName.jpg> . I tested the path on
Windows in InternetExplorer and it pops up a Login dialog. After
authentication the picture is loaded and all further requests are ok.
How can I get this behavior on Mac (Firefox / Safari / any other
browser)?



In code I tried to get it with:



NSData * data = [NSURLConnection sendSynchronousRequest:theRequest
returningResponse:&theResponse error:&theError];

Where "theRequest" is a NSURLRequest initialized with the path given
above.



I also tried to initialize the NSURLRequest with a path like :
\\user:email@hidden\SomeFolder\FileName.jpg
<file:///\\user:email@hidden\SomeFolder\FileName.jpg>  where the
user and password are the same that worked on the windows
authentication. No luck!



Any ideas would be greatly appreciated!



Thanks!



PS: the strings are ok, as in the "\" is actually a "\\" in code ...



_______________________________________________________________________

Valentin Dan, Software Engineer Direct: +1 905 886 1833
ext.3047


Email: email@hidden Office: +40 356-710158

Masstech Group Inc. Fax: +40 256-220912

http://www.masstechgroup.com <http://www.masstechgroup.com/>



THIS MESSAGE IS INTENDED ONLY FOR THE ADDRESSEE. IT MAY CONTAIN
PRIVILEGED OR CONFIDENTIAL INFORMATION.ANY UNAUTHORIZED DISCLOSURE IS
STRICTLY PROHIBITED.IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE
NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT THE RECORDS. PLEASE THEN
DELETE THE ORIGINAL MESSAGE. THANK YOU.







_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

--- Alexander Spohr Freeport & Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • RE: autentification problem
      • From: "Valentin Dan" <email@hidden>
References: 
 >autentification problem (From: "Valentin Dan" <email@hidden>)

  • Prev by Date: autentification problem
  • Next by Date: Re: autentification problem
  • Previous by thread: autentification problem
  • Next by thread: RE: autentification problem
  • Index(es):
    • Date
    • Thread