Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commitd4ccaec

Browse files
committed
Merge pull request#386 from ax3l/master
More thorough documentation of 403 response when User-Agent header is invalid.
2 parentsa6cdfa9 +0d5c2ca commitd4ccaec

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎content/v3.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,19 @@ Here's an example:
386386
User-Agent: Awesome-Octocat-App
387387
</pre>
388388

389+
If you provide an invalid`User-Agent` header, you will receive a`403 Forbidden` response:
390+
391+
<preclass="terminal">
392+
curl -iH 'User-Agent: ' https://api.github.com/meta
393+
HTTP/1.0 403 Forbidden
394+
Connection: close
395+
Content-Type: text/html
396+
397+
Request forbidden by administrative rules.
398+
Please make sure your request has a User-Agent header.
399+
Check https://developer.github.com for other possible causes.
400+
</pre>
401+
389402
##Conditional requests
390403

391404
Most responses return an`ETag` header. Many responses also return a`Last-Modified` header. You can use the values

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp