CSDN博客-客户端(非官方)

功能简介:实现客户端编写博文功能。下载地址

程序界面:


工作原理

      通过程序代码模拟用户登陆,并模拟Post请求以发布文章。 下载地址

=======================================================更新记录============================================================

2013-5-5 更新:增加富文本编辑器。

2013-5-5 更新:解决需手动输入cookie的问题,登录失败时再手动输入cookie吧,获取cookie的方法,见下文。

(ps:若直接能登录账户,下面内容可忽略)


使用方法:截图说明吧。


这里说下如何获取Cookie:(以firebug为例,用finder就更直观了)

1.进入csdn登陆页面,开启firebug,插入js断点:


2.查看请求网络数据包:


注意:是请求头信息里的Cookie。


3.查看Cookie,并复制保存:


4.将获取到的Cookie填入客户端程序:


5.初始化文章分类:


6.至此结束,发表文章即可! 

 

转载于:https://www.cnblogs.com/zhangqs008/archive/2013/05/04/3618462.html

发布了0 篇原创文章 · 获赞 7 · 访问量 4万+
展开阅读全文
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符

JAVA入门学习,安装环境,最新的JDK-13,最新的eclipse,启动eclipse报错

09-18

JAVA入门学习,安装环境,最新的JDK-13,最新的eclipse,启动eclipse报错。 ``` !SESSION 2019-09-18 20:17:01.382 ----------------------------------------------- eclipse.buildId=4.6.3.M20170301-0400 java.version=13-ea java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product !ENTRY org.eclipse.osgi 4 0 2019-09-18 20:17:03.164 !MESSAGE Application error !STACK 1 org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:386) at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:294) at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:490) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:504) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:203) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:632) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610) at org.eclipse.equinox.launcher.Main.run(Main.java:1519) Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:151) at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:375) ... 22 more Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.1.v20160712-0927 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:410) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 24 more ``` 已尝试在eclipse.ini文件加入 --add-modules=ALL-SYSTEM 保存后启动仍然报错 64位win7系统,下载的没错。 卸载了JDK13,重新安装了低版本的JDK8,问题已解决。 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览