friendica / friendica-directory

Global directory for the Friendica project. The repository has moved to git.friendi.ca/friendica/friendica-directory
GNU Affero General Public License v3.0
20 stars 11 forks source link

Add user agent to "fetchURL" and "testURL" #49

Closed annando closed 4 years ago

annando commented 4 years ago

While trying finding out why profiles seem to keep disappear in the directory I realized that it is not really possible to easily see the directory requests in the web server log.

Although there are curl with CURLOPT_USERAGENT set to friendica-directory-probe-1.0, the functions fetchURL and testURL don't set any user agent, it seems.