用程序访问一个页面,但这个页面需要用户名和密码,这个用户名和密码是如何传入到网页中的?比如说CSDN,发贴子需要用户名和密码的权限,只有登录的用户才可以发贴子或者回复贴子,
假设,我现在写了一段代码,来完成发贴子的功能,但是发贴子的代码如何来完成权限的认证?又或者说,我现在我现在在一个视频网站上面发布视频文件,但是只有登录的用户才可以上传视频文件。如果人为操作的话,就是先登录,然后,上传文件。如果要使用程序实现指上传视频文件的话,这个登录的用户如何去认证的?就是如何让服务器端认为我是使用我自己的用户名登录并上传文件的?分数不是问题,最主要的能解决问题。谢谢

解决方案 »

  1.   

    晕,不是登录验证的问题。比如说,现在我写了一个模氛CSDN发贴子的Winform程序。但是CSDN发贴子需要登录后,才可以发贴子呀。我现在就是想知道如何模拟这个登录的现象。一般的网站的登录与否,都是使用session来验证的,那假如说CSDN上,你登录后,服务器有一个session["user"],只有这个session存在,才可以发贴子,否则,权限是被拒绝的。每一个人都有自己的长处,也会有自己的短处,虽然我是一星,但不见得我啥也懂呀。是吧?有不懂的地方肯定 得向大家请教学习呀。
      

  2.   

    http://blog.csdn.net/hedongyang/archive/2007/05/15/1609379.aspx
      

  3.   

    我刚刚在网上搜了下,由于不会拼写这个问题的关键字,半天没搜到有价值的内容,不得已,在这里向大家发贴请助。见笑了。可能大家认为这个问题,不应该是星级人物问出的问题吧,但我确实是不会问题是在网上看到的一个项目的需求时,想到的,如果是你,你会如何去解决这个问题?============================
    load youtube accounts from txt file(s) {usernames&passwords}
    EXAMPLE: http://i276.photobucket.com/albums/kk15/wecdfertbgy/unpwexample.jpgload list of proxies from txt or excel file
    example: http://i276.photobucket.com/albums/kk15/wecdfertbgy/Untitled.jpgload video information and file from txt or excel file
    EXAMPLE: http://i276.photobucket.com/albums/kk15/wecdfertbgy/VIDINFOPIX.jpgupload all videos automatically with 1 clickshow progress bar for status of uploading videos
    (example: http://i278.photobucket.com/albums/kk92/lkmlkdmlk/progressbar1.jpg)create report of urls the videos that were uploaded on a txt file
    example: http://i276.photobucket.com/albums/kk15/wecdfertbgy/vidreport.jpg
    *The software should have an area were I could choose AND DECIDE WHICH videos that will be going to each accounts
    *The program must be able to upload multiple videos to multiple accounts automatically
    *The program should have an area were I could enable proxy
    --The program must switches to new proxy after uploading each video when the proxy feature is enabled.
    *The software must be compatible with windows vista and windows xp
    *the program can be left alone and unattended.
    *Attached to this post is a txt file of different Video Categories of Youtube
    **The program must not be buggy or have any problems.**