简体   繁体   English

从计算机读取发帖请求

[英]Read post requests from computer

i'm trying to write a java program to read everything I post to a certain website (facebook in this case), I'm trying to make a program to save my ongoing chat to text, I can find the POST in fiddler, but how do I read it in java? 我正在尝试编写一个Java程序来读取我发布到某个网站(在这种情况下为facebook)的所有内容,我正在尝试创建一个程序以将正在进行的聊天保存为文本,我可以在提琴手中找到POST,但是如何在Java中阅读? I didn't try anything so far because I don't know where to start, and I can't search because I don't know what to search for, is there a better way to do it ? 到目前为止,我没有尝试任何操作,因为我不知道从哪里开始,并且因为我不知道要搜索什么而无法搜索,有没有更好的方法呢? thanks 谢谢

If you're really looking for something like network traffic sniffer written in Java you'll need to start with researching Jpcap . 如果您真的在寻找用Java编写的网络流量嗅探器之类的东西,则需要研究Jpcap

You could try their samples, they seem to have a code for Java Tcpdump implementation ready to use. 您可以尝试他们的示例,他们似乎已经准备好使用Java Tcpdump实现的代码。

But listening to traffic is a hack and not a solution, thus should be used episodically and not in production. 但是,侦听流量是黑客行为,而不是解决方案,因此应流行使用而不是在生产中使用。 And if it's not in production why bother with Java and not use command line tools like tcpdump or ethereal ? 而且,如果不在生产环境中,为什么还要打扰Java并且不使用tcpdumpethereal之类的命令行工具呢?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM