GEHRN(ゲヒルン)のAPIで短縮URLを作成するサンプルデモ GEHRNが提供するAPIを使って、PHPで指定したURLの短縮URL(ux.nu)を作成するサンプルデモです。色々とURLを入力して、動作を確認してみて下さい。 実行結果短縮URLを作成できませんでした…。取得したデータJSONの内容403 Forbidden Request forbidden by administrative rules. レスポンスヘッダーの内容HTTP/1.1 302 Found date: Sat, 29 Mar 2025 22:48:29 GMT server: Apache set-cookie: __tad=1743288509.8182237; expires=Tue, 27-Mar-2035 22:48:29 GMT; Max-Age=315360000 location: http://ww16.ux.nu/api/short?url=https%3A%2F%2Fsyncer.jp%2Fhow-to-make-shoten-url&sub1=20250330-0948-297d-8b75-c7c4ad0e7918 content-length: 2 content-type: text/html; charset=UTF-8 connection: close HTTP/1.1 403 Forbidden content-length: 93 cache-control: no-cache content-type: text/html URLの指定SHORTEN !!