URL Access Error codes
URL Access Error codes
- Subject: URL Access Error codes
- From: Malcolm Fitzgerald <email@hidden>
- Date: Thu, 14 Mar 2002 18:18:37 +1100
Our ISP has switched to a new server and its upset my URL Access
scripts. I'm getting this error: -3170
It has something to do with authentication because everything works
if I authenticate the transaction manually. This isn't something I
want to do - I'd like to pass the username and password in the URL as
I have previously.
What's changed ?
1. The server. We used to send things to upload.zipworld.com.au now
we send things to our domain name
2. our login is now our full email address, previously it was simply
our account name. That means there are two @ symbols in the URL. URL
Access chokes on that, so I'm sending it in a converted state.
upload_file("
ftp://email@hidden:email@hidden/public_html/woda/data/website/newsletters/",
"macintosh hd:uploads:news1187")
-- upload
on upload_file(the_url, localFileName)
try
-- try connecting for 5 minutes
with timeout of 300 seconds
tell application "URL Access Scripting"
-- upload the record
upload alias localFile to the_url
replacing yes -- with authentication
-- works with authentication/errors without it
quit
end tell
return true
end timeout
on error the error_message number error_number
tell application "URL Access Scripting" to quit
if the error_number is not -128 then
error_message -- return false
end if
end try
end upload_file
-- "URL Access Scripting got an error: An error of type -3170 has occurred"
--
Malcolm Fitzgerald
Database Manager
The Australian Society of Authors
ph: 02 9318 0877 fax: 02 9318 0530 email: email@hidden
www.asauthors.org www.asauthors.org/award www.asauthors.org/web_of_poets
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.