• 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
URL Access Error codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: URL Access Error codes
      • From: JollyRoger <email@hidden>
  • Prev by Date: Re: FADE DEAD
  • Next by Date: Re: FileMaker/AppleScript Question
  • Previous by thread: Re: Weird... (but quite logical really)
  • Next by thread: Re: URL Access Error codes
  • Index(es):
    • Date
    • Thread