captin
03-10-2004, 11:59 AM
I am fairly new to laszlo and am impressed thus far.
Recently I have run into an issue while researching the feasability of integration.
When trying to connect to a cgi on a webserver that requires http basic authentication, the connection times out.
Here is a sample code snippet
--------
<dataset
name="test"
src="https://user:pass@server.com/myscript.cgi">
--------
The above is the functionality I am looking for.
I have also tried the following:
------------
<dataset
name="test"
src="https://server.com/myscript.cgi">
... and a little later ...
<button>go
<method event="onclick">
var d = canvas.datasets.test;
d.setHeader(
"Authorization",
"Basic KnownBase64UsernamePlusPassword"
);
d.setQueryString( ... stuff ... );
d.doRequest();
</method>
</button>
This second method also does not work. Does anyone have any suggestions for getting a simple datasource working with a server configured to use Basic HTTP Auth?
Recently I have run into an issue while researching the feasability of integration.
When trying to connect to a cgi on a webserver that requires http basic authentication, the connection times out.
Here is a sample code snippet
--------
<dataset
name="test"
src="https://user:pass@server.com/myscript.cgi">
--------
The above is the functionality I am looking for.
I have also tried the following:
------------
<dataset
name="test"
src="https://server.com/myscript.cgi">
... and a little later ...
<button>go
<method event="onclick">
var d = canvas.datasets.test;
d.setHeader(
"Authorization",
"Basic KnownBase64UsernamePlusPassword"
);
d.setQueryString( ... stuff ... );
d.doRequest();
</method>
</button>
This second method also does not work. Does anyone have any suggestions for getting a simple datasource working with a server configured to use Basic HTTP Auth?