safari define referrer
safari define referrer
- Subject: safari define referrer
- From: ebricca <email@hidden>
- Date: Thu, 22 Jan 2004 09:38:39 +0100
hi :)
anyone knows/has a clue how i could let the safari browser open a
window with an own defined referrer tag ( also ev. broader .. self
define 'http header' send elements )
.. me thinks the best way would be a scripting language command if it
existed (apple- or javascript) ..
i couldn't find any reference in javascript that it would be possible
(access violation?) except from a only referrer clearing MSIE hack ..
for applescript i found in mozilla 1.3a an introduced non working (for
me) <GetURL "url" from "referrer"> but this was dropped again in 1.4
another idea is to define in applescript a "url class" element
(standard AS lib) the only thing that misses in it is the url referrer
class property, basic authorisation properties are there. Additionally
how to load a url in safari (i couldn't find a open url function that
would accept the url class type)
would it be possible to influence safari via variables of a framework
obj-c header file ??? (i don't think so but i'd like to be surprised)
.. i couldn't find a reference for referrer in webkit .. but it exists
a webcore header file with the property in WebCoreBridge.h
(
http://www.opensource.apple.com/darwinsource/10.3/WebCore-106/kwq/
WebCoreBridge.h)
thanks in advance
ernesto
appendix
Mozilla 1.3a AppleScript Lib Interface
URL suite: Mac URL standard, supported by many apps
GetURL: Loads the URL (optionally to disk)
GetURL string -- The url
[to file specification] -- file the URL should be loaded into
[inside reference] -- Window the URL should be loaded to
[from string] -- Referrer, to be sent with the HTTP request
iCab AppleScript Lib Interface
Web Browser Suite: Class of events which are sent to Web Browser
applications
OpenURL: Retrieves URL off the Web.
OpenURL string -- Fully specified URL
[to file specification] -- File to save downloaded data into.
[toWindow integer] -- Window to open this URL into. (Use -1 for top
window, 0 for new window, -2 for new Tab)
[Flags integer] -- Valid Flags settings are: 1-Ignore the document
cache; 2-Ignore the image cache; 4-Operate in background mode.
[FormData anything] -- Posting of forms of a given MIMEType.
[MIMEType string] -- MIME type for the FormData.
[ProgressApp 'psn '] -- If specified, ProgressApp can be named to
handle the user interface for process messages.
[ResultApp 'psn '] -- When the requested URL has been accessed and
all associated documents loaded, the Web browser will issue an
OpenURLResult to the ResultApp.
Result: integer -- TransactionID
Standard Additions AppleScript Lib Interface
Class URL: A Uniform Resource Locator or Uniform Resource ID (URI)
Properties:
properties record -- property that allows getting and setting of
multiple properties
name plain text [r/o] -- a name given to this URL, usually the name
of the page it refers to
scheme http URL/secure http URL/ftp URL/mail URL/file URL
(obsolete)/gopher URL/telnet URL/news URL/secure news URL/nntp
URL/message URL/mailbox URL/multi URL/launch URL/afp URL/AppleTalk
URL/remote application URL/streaming multimedia URL/... [r/o] -- the
access scheme
host Internet address [r/o] -- the host specified by this URL
path plain text [r/o] -- the location of the target on the host
user name plain text [r/o] -- the user name by which to access this
URL
password plain text [r/o] -- the password by which to access this
URL
_______________________________________________
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.