RSS 2.0
 Sunday, April 12, 2009

论坛文本浏览器加上了登录功能,能访问需要登录的地址,WINFORM登陆WEB其实是就是POST一系列参数到登陆地址,再取到返回的COOKIE

POST一个地址很简单,直接用HttpRequest请求就行了,加上一些参数,普通的基于HTTP处理的页面比如ASP,PHP直接POST过去就接收了,但ASPX基于事件的WEB就有点麻烦,ASPX在表单页会生成一个HIDDEN,__VIEWSTATE,里面记录了当前表单的一些信息,提交后会用这个对POST过去的信息验证,要到什么程度?试过好多次后发现,所有表单项都需要验证,这样看来,要POST到ASPX页就要读出这个页所有表单项的值了,在完成所有工作后发现,我的程序还是没有正确提交到ASPX页,仔细检查手动生成的GET参数发现,INPUT TYPE=IMAGE的表单项会生成两个参数,IMAGE.X,IMAGE.Y,只有把这两个参数带上才能成功,并且,这个值也能乱写,保证有这个参数就行了,这个应该是表示坐标的,验证这个很无理

多数登录有验证图片,读这个图片也有点麻烦,有的是用JS生成的HTTP代码加上图片,还好借助WEBBROWSE控件能返回经过浏览器处理的HTML代码

完成了正确POST信息后就是处理返回的COOKIE了,原理也很简单,POST后,读取返回的COOKIE,下次请求时再附加上这个COOKIE,这个COOKIE能反复使用,为了能在下次不用再次点登录,把它序列化保存起来,下次请求时,附加上这个COOKIE

到止,这个程序比较完美了,虽然是自已专用

Sunday, April 12, 2009 9:35:08 AM (中国标准时间, UTC+08:00)  #    -
小程序
 Friday, February 27, 2009

现在论坛花里胡哨,上班时间看不方便,咋把它整成黑白的

写了一个小程序,从论坛匹配出贴子列表,再按链接打开贴子,贴子也经过处理,去掉样式,图片,背景色,文字颜色

显示的贴子

读出来的列表

字段和匹配设置

增加了多配置,字段编辑

运行环境,.NET2.0

WebBrowse.zip (26.95 KB)
Friday, February 27, 2009 3:26:53 PM (中国标准时间, UTC+08:00)  #    -
小程序
 Thursday, September 11, 2008

能把里面的匹配项用不同颜色表示出来,效果如下图

地址

http://www.hubro.net/regexp.aspx

Thursday, September 11, 2008 3:46:18 PM (中国标准时间, UTC+08:00)  #    -

 Sunday, July 13, 2008

我为宁者馨。宁为我者爱。人博者为泽。人静者为仪。

Sunday, July 13, 2008 5:23:21 PM (中国标准时间, UTC+08:00)  #    -

 Wednesday, June 18, 2008

没有找到好用的五笔编码查询工具,自已写个!-_

版本为86版编码,只找到了一个单字的库,没法准确查两字词组,运行环境.NET2.0

WBSC.zip (398.92 KB)

Wednesday, June 18, 2008 5:05:50 PM (中国标准时间, UTC+08:00)  #    -

 Tuesday, June 10, 2008

1,我是写程序的

2,这个BLOG是换过程序的,之前的BLOG是写了很多技术文章

3,不想写了,这个BLOG不会经常更新

4,老老实实做自已的事吧,PR只是浮云,说不定哪天GOOGLE高兴给你了个8

5,不要在这发广告,访问量很低的,没意义,也不做链接

Tuesday, June 10, 2008 3:57:54 PM (中国标准时间, UTC+08:00)  #    -

 Tuesday, June 03, 2008

ge太有才了,用一些小图片生成了一个福娃欢欢

http://www.mytuya.com/activity/my_2008.html

也来捣鼓捣鼓,效果也不差

生成的原始图,可以看到是一个个小图片p_095455627.gif (967.67 KB)

DEMO下载(.NET2.0)

PIXIMG.zip (7.03 KB)
Tuesday, June 03, 2008 4:39:29 PM (中国标准时间, UTC+08:00)  #    -

 Monday, May 05, 2008

Nightwish的歌一直是那么振奋人心

 

They came for him one winter's night.
Arrested, he was bound.
They said there'd been a robbery,
his pistol had been found.

They marched to the station house,
he waited for the dawn.
And as they led him to the dock,
he knew that he'd been wrong.
"You stand accused of robbery,"
he heard the bailiff say.
He knew without an alibi,
tomorrow's light would mourn his freedom.

Over the hills and far away,
for ten long years he'll count the days.
Over the mountains and the seas,
a prisoner's life for him there'll be.

He knew that it would cost him dear,
but yet he dare not say.
Where he had been that fateful night,
a secret it must stay.
He had to fight back tears of rage.
His heart beats like a drum.
For with the wife of his best friend,
he spent his final night of freedom.

Over the hills and far away,
he swears he will return one day.
Far from the mountains and the seas,
back in her arms he swears he'll be.
Over the hills and far away.

Over the hills and,
over the hills and,
over the hills and far away.

Each night within his prison cell,
he looks out through the bars.
He reads the letters that she wrote.
One day he'll know the taste of freedom.

Over the hills and far away,
she prays he will return one day.
As sure as the rivers reach the seas,
back in his arms she swears she'll be.

Over the hills and far away,
he swears he will return one day.
Far from the mountains and the seas,
back in her arms he swears he'll be.

Over the hills and far away,
she prays he will return one day.
As sure as the rivers reach the seas,
back in his arms is where she'll be.

Over the hills,
over the hills and far away.

Over the hills,
over the hills and far away.

同名专辑下载

http://www.verycd.com/topics/26044/

Monday, May 05, 2008 9:37:07 AM (中国标准时间, UTC+08:00)  #    -

Categories
Archive
<April 2009>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
Hubro.net
Sign In
Statistics
Total Posts: 18
This Year: 0
This Month: 0
This Week: 0
Comments: 502
All Content © 2010, Hubro.net
DasBlog theme 'Business' created by Christoph De Baene (delarou)