|
|
|
1000 Java Tips ebook
|
|
 

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!. |
|
Easy Learn Java: Programming Articles, Examples and Tips - Page 78
Previous
1060 Stories (530 Pages, 2 Per Page)
Next
FilePermission cannot Handle Symbolic Links? I was trying to change file permiss
|
Question: FilePermission cannot Handle
Symbolic Links? I was trying to change file
permissions on a link but it did not changed! I am the
owner of a link...
Answer: Although you can fully own a
softlink, the permissions that apply for any action are the ones of the target.
OS prohibits a user from changing the permissions of
the files being linked to.
Otherwise it could be easy to break a security: just link to any file and change
permission 
*******************************************
Our older tips: March 22, 2001 - October 21, 2002
READ
HERE
All published and not published on the site tips read
HERE
31 comments | | Score: 4
|
Posted by jalex on Friday, September 05, 2003 (00:00:00) (4662 reads)
|
My application tries to read html files from web server.
|
Question: My application tries to read
html files from web server.
Some of files are protected by an authorization procedure - server
asks for username and password. What could I
do?
Answer: Connecting via a socket to port
80 of the web server, put your necessary info into
HTTP message.
You need to provide an authorization field in the header section of the HTTP
message, with the user and password. They are encoded
using base64 format. I do not remember details of protocol... You
can read more in RFC that describes the HTTP protocol.
*******************************************
Our older tips: March 22, 2001 - October 21, 2002
READ
HERE
All published and not published on the site tips read
HERE
8 comments | | Score: 0
|
Posted by jalex on Thursday, September 04, 2003 (00:00:00) (3197 reads)
|
|
|