Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

FTPS (FTP-SSL) in Qt 4.6 -


im trying ftp-ssl work qt 4.6.3. i've compiled qt openssl support. there resources ftps qt? seems qftp not provide ssl support. dont want create own ftps implementation.

// edit: discovered qnetworkaccessmanager (ty @ frank) cant find useful documentation or examples ssl it. thats i'm trying:

qurl url = qurl("ftp://localhost/filex.txt"); url.setusername("root"); url.setpassword("root"); qnetworkrequest request(url); qsslconfiguration sslconfiguration(qsslconfiguration::defaultconfiguration()); request.setsslconfiguration(sslconfiguration); manager->get(request); 

but filezilla wont let me connect. fz console says:

(000035)21.12.2010 17:31:46 - (not logged in) (127.0.0.1)> user root

(000035)21.12.2010 17:31:46 - (not logged in) (127.0.0.1)> 530 ssl required

filezilla configuration:

  • ftp on ssl/tls support enabled
  • explicit ftp on tls enabled
  • plain unencrypted ftp disallowed
  • ssl forced roots login

i @ least expect sort of sslerrors signals since user/pw fine , ssl fails, i'm getting authenticationrequired signals.

thanks help!

unfortunately there's no out of box solution ftps in qt.

  • qftp implements many ftp commands not support encryption.
  • qnetworkaccessmanager supports basic ftp functions (file download/upload) , not support encryption in case of ftp, either. it's worth mention support encryption http, protocol it's designed for.
  • qsslsocket implements ssl no specific protocol ftp or http

taking above information consideration idea comes mind mix qftp qsslsocket encrypted ftp. problem qftp class has no method allow make qftp use user supplied socket. comparision qhttp has such method - int qhttp::setsocket(qtcpsocket * socket)

bottom line; according thiago macieira (designer of qnetworkaccessmanager) way go implement ftp protocol using qsslsocket.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -