I am trying to execute an agent using lotus script triggered via a URL. The problem that I have is that once I have issued the username= & password= commands as part of the URL any further parameters I try to include after this are ignored. (as if it sees anything after password= as being part of the password)
ie. http://“+ internalIP(0) +”/dbname?Login&Username=username&Password=password"
I then want to run an agent, and pass a parameter.
ie. /agentname?OpenAgent&Account=" + account(0)
If I remove the need to login the agent is executed okay however this results in the db being open to anonymous access.
Does anyone have any experience of doing this if so help would be appreciated.
Regards
Daniel
Subject: Question on running agents using lotus script via a URL
If the agent’s being triggered from a browser, can’t the credentials be enetered used Basic authentication?
I’m probably missing the point - can you give a little more info about the structure of what’s being used?
Thanks
Kiers
Subject: RE: Question on running agents using lotus script via a URL
The agent is not realy being triggered from a browser it is being triggered using a GetDocumentByURL command.
Subject: RE: Question on running agents using lotus script via a URL
database.getDocumentByURL?
If so, you can use the parameters in the function to send username and password, rather than including them in the URL:
set notesDocument = notesDatabase.GetDocumentByURL( URL$ [, reload ] [, urllist ] [, charset$ ] [, webusername$ ] [, webpassword$ ] [, proxywebusername$ ] [, proxywebpassword$ ] [, returnimmediately ] )
does that help, or am I still off base …
Cheers
K
Subject: RE: Question on running agents using lotus script via a URL
This could be the answer, will give it a go.
Thanks
Daniel
Subject: RE: Question on running agents using lotus script via a URL
Worked fine,
Thanks Kieran
Subject: Question on running agents using lotus script via a URL
You might try RedirectTo parameter.
http:///names.nsf?login&username=&password=redirectto=