Loading urls from a protected website

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Dec 6 10:28:45 CST 2006


Hello Richard and Jim,

Thanks to both of you for your suggestions:

Richard: trying to add the username and the password to an http url  
unfortunately does not work.
Jim: I did not think of libURLSetLogField and  
libURLSetStatusCallback: good idea :-)

Finally as I did not wanted to have too much code to modify...
I ended by using load with a "ftp" form:

put "ftp://" & tUserName & colon & tPassword & "@" & tAddress into tUrl
load url tUrl --
DisplayProgress tUrl --

And it works like a charm.

Best Regards from Paris,
Eric Chatonet


Le 6 déc. 06 à 16:25, Richard Gaskin a écrit :

> If it's protected with htaccess you should be able to embed the  
> login in the URL as with FTP:
>
>    http://<user>:<password>@www.mydomain.com
>
> --
>  Richard Gaskin
>  Managing Editor, revJournal

Le 6 déc. 06 à 16:48, Jim Ault a écrit :

> Here is something I use that generates the *progress data* with ftp  
> and
> password:
>
> on mouseup
>
>   libURLSetLogField "field 2"
>   libURLSetStatusCallback  "setPercentage",(the long id of this card)
>   --bunches of other stuff
>   put "trialStackForClient.rev" into FName
>   put url ("ftp://user:pswd@client.testsite.com/web/" & FName) into \
>       stkToRun
>   go stack stkToRun
>
> end mouseup
>
> Jim Ault
> Las Vegas
>
>
> On 12/6/06 7:15 AM, "Eric Chatonet"  
> <eric.chatonet at sosmartsoftware.com>
> wrote:
>
>> Hi all,
>>
>> To update an application from the web that requires downloading many
>> files, I have built without any problem a process using the non
>> blocking load command allowing to display a progress bar.
>> Now I have protected access to the website folders (usual login and
>> password).
>> So I can no longer use "load": the command returns a 401 error
>> (protected access).
>> Normal.
>> I must use ftp that allows to specify a username and a password but I
>> am no longer able to display download progress :-(
>> Your thinking will be welcome :-)


------------------------------------------------------------------------ 
----------------------
http://www.sosmartsoftware.com/    eric.chatonet at sosmartsoftware.com/





More information about the use-livecode mailing list