Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 14, 2019 9:18 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: HTTPSocket with username/password
PostPosted: Tue Jul 19, 2011 12:16 pm 
Offline

Joined: Sat Aug 04, 2007 11:41 am
Posts: 212
I am needing to access a site via httpsocket to grab a data file, but it has a username and password on it.

It's still an http:// URL.

How can I do this?

Alan


Top
 Profile  
Reply with quote  
 Post subject: Re: HTTPSocket with username/password
PostPosted: Tue Jul 19, 2011 12:46 pm 
Offline

Joined: Thu Dec 16, 2010 1:22 pm
Posts: 188
If it's a login "form" that has to be filled in first, you'll have to use cookies - that's a bit more complicated.
But if it's just standard HTTP login, when you attempt to connect the socket, it will fire the
AuthenticationRequired event
(Function AuthenticationRequired(Realm as string, Headers as InternetHeaders, ByRef Name as string, ByRef Password as String) As Boolean

Just set the Name and Password and return True

See this thread for additional discussion
http://forums.realsoftware.com/viewtopic.php?f=1&t=38186


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group