小编The*_*101的帖子

如何阻止电子邮件客户端自动访问电子邮件中的链接?

我有一个 PHP 脚本,它发送纯文本电子邮件,其中包含某些操作的链接,例如确认和协议等。

我注意到,Web 版 Outlook 会在用户单击链接之前自动检测该链接并在后台访问该链接。我注意到了这一点,因为只要我打开电子邮件,数据库中的内容就会发生变化。另外检查 Apache 访问日志,我看到BingPreview/1.0b作为用户代理。

这非常糟糕,因为用户可能不想执行这些操作。

我可以发送电子邮件标头来禁用此行为吗?建议?

php email bing

7
推荐指数
1
解决办法
3695
查看次数

如何清除 PostgreSQL psql 命令历史记录

当使用 登录数据库时psql -u postgres,所有输入的命令都可以在历史记录中查看和调用。

我创建了一个带有密码的角色,我想清除该条目。

如何清除历史记录?

command-line psql

5
推荐指数
2
解决办法
9300
查看次数

通过通道从客户端读取内容时java.nio.channels.IllegalBlockingModeException

非常新的NIO我正在建立一个聊天应用程序我在所有客户端都有连接,但在从客户端读取内容时我得到了java.nio.channels.IllegalBlockingModeException.请帮我这里是发生异常的代码.同时达到while (rbc.read(b) != -1)PrintRequest class异常occures

public class PrintRequest extends Thread
{

    public  PrintRequest(SocketChannel sc,int i)throws Exception
    {
        System.out.println("going to enter the try block of PrintRequest");        
        try
        {   
               System.out.println("Am in the try block of PrintRequest");    

               ReadableByteChannel rbc = Channels.newChannel(sc.socket().getInputStream()); 
               System.out.println("checking in PrintRequest 0001");
               WritableByteChannel wbc = Channels.newChannel(System.out); 
               System.out.println("checking in PrintRequest 0010");
               ByteBuffer b = ByteBuffer.allocateDirect(1024); // read 1024 bytes 
                // int numBytesRead = sc.read(b);
                 System.out.println("checking in PrintRequest 0011");
                 while (rbc.read(b) != -1) 
                 {
                     System.out.println("Am  in …
Run Code Online (Sandbox Code Playgroud)

java sockets networking nio socketchannel

1
推荐指数
1
解决办法
7493
查看次数

标签 统计

bing ×1

command-line ×1

email ×1

java ×1

networking ×1

nio ×1

php ×1

psql ×1

socketchannel ×1

sockets ×1