一个别人写的在WindowCE下发HTTP包的类

来源:互联网 发布:图片编辑软件有哪些 编辑:程序博客网 时间:2024/05/21 18:50
using System;
using System.Data;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Text;
using System.Xml;
using System.Threading;
using System.Collections;
using System.Runtime.InteropServices;
using System.Reflection;

using System.Drawing;
using System.Windows.Forms;

namespace Lindo.Webservice
{
/// <summary>
/// 2006-3-27 舒海燕
/// 
/// 用于在移动设备上调用Webservice;
/// 支持直接调用和通过代理调用;
/// 能CMNET接入的无需设置代理;
/// 通过CMWAP接入的需设置代理"http://10.0.0.172:80"
/// </summary>

public class compactService2
{
private string URL="";
private string ProxyURL="";

//private Size realSize;

// Http request/response
private HttpWebRequest m_req;
private HttpWebResponse m_resp;

// Data buffer for stream operations
private byte[] dataBuffer;
private int DataBlockSize = 256;


//private string m_Status;
//private string UpdateUrl;
public int pbVal=0, maxVal=0;

private string reStr="";
private bool state=false;

属性

webservice调用,http方式

方法
 
原创粉丝点击