WASHINGTON — US President Donald J. Trump has developed a friendly relationship with Philippine President Rodrigo R. Duterte, a senior administration official said on Tuesday, despite Mr. Duterte’s often profanity-laden tirades against the US.

“I think there’s a warm rapport there and he’s very much looking forward to his first in-person meeting with President Duterte,” the US official told reporters during a background briefing on Mr. Trump’s Nov. 3-14 trip to Asia.

The two leaders have become friendly during telephone conversations and exchanges of letters, the official said.

Mr. Trump will travel to Asia amid rising tensions over North Korea’s nuclear and missile programs. He will be in Manila on the last leg of his trip, which includes visits to Japan, South Korea, China, and Vietnam, to attend the ASEAN leaders’ summit.

Mr. Duterte has attacked the US verbally, chiding Washington for treating the Philippines “like a dog,” despite the two nations’ longstanding relationship.

The Philippines’ leader announced his “separation” from the US during a visit to Beijing a year ago, declaring he had realigned with China as the two agreed to resolve a South China Sea dispute through talks.

Mr. Duterte is accused by international human rights groups of supporting a campaign of extrajudicial killings of drug suspects in the Philippines, which his government denies.

The Philippine leader was infuriated by expressions of concern by members of former US president Barack H. Obama, Jr.’s administration about extrajudicial killings in the Philippines.

But Mr. Trump, in a phone call to Mr. Duterte in May, praised the Philippine leader for doing an “unbelievable job on the drug problem” despite human rights groups’ condemnation of Mr. Duterte’s drug crackdown, in which thousands of people have been killed. — Reuters