2008-3-12 10:38:06 阅读125 评论10 122008/03 Mar12
2008-3-6 12:46:38 阅读42 评论0 62008/03 Mar6
2008-3-5 10:05:23 阅读21 评论0 52008/03 Mar5
2008-2-29 9:11:38 阅读18 评论0 292008/02 Feb29
分页插件:ruby script/plugin install svn://errtheblog.com/svn/plugins/will_paginate
spec插件:
2008-2-19 15:45:10 阅读40 评论0 192008/02 Feb19
require 'net/http'
require 'uri'
module Net
class HTTP
def HTTP.get_with_headers(uri,headers=nil)
uri=URI.parse(uri) if uri.respond_to? :to_str
start(uri.host,uri.port) do |http|
return http.get(uri.path,headers)
end
2008-2-13 13:51:57 阅读81 评论0 132008/02 Feb13
#
# To change this template, choose Tools | Templates
# and open the template in the editor.
require 'net/ftp'
#include Tests
def upload_file(host,user,password,local_folder,remote_folder,size)
ftp_client=Net::FTP.new(host)
ftp_client.login(user,password)
get_folder("*",remote_folder,ftp_client,create_folder(local_folder),size)
2008-2-13 13:03:06 阅读12 评论1 132008/02 Feb13
2008-2-3 13:24:08 阅读13 评论0 32008/02 Feb3
2008-1-29 9:28:54 阅读200 评论0 292008/01 Jan29
using System;
using System.Net;
using System.IO;
using System.Text;
using System.Net.Sockets;
namespace ftpGet
{
/// <summary>
/// FTP Client
/// </summary>
public class FTPClient
{
#region 构造函数
/// <summary>
/// 缺省构造函数
/// </summary>
public FTPClient()
2008-1-29 9:26:48 阅读254 评论0 292008/01 Jan29