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.

Add the error code for missing user agent#386

Merged
jdennes merged 2 commits intogithub:masterfromax3l:master
Nov 29, 2013
Merged

Conversation

ax3l
Copy link
Contributor

This requirement is somewhathidden in the documentation.
Besides that still residing problem, the pull allows to:

  • google the problem
  • adds what theStatus 403: Forbidden could be caused by

The problem for e.g. PHP's cURL is, that theuser agent is not set by default.

Example:

$ch =curl_init();...curl_setopt($ch,CURLOPT_USERAGENT,"Awesome-Octocat-App");...

- allows to google the problem- Status 403: Forbidden
@@ -386,6 +386,15 @@ Here's an example:
User-Agent: Awesome-Octocat-App
</pre>

The error without an user agent looks like this:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Could we please change this line to:

If you provide an invalidUser-Agent header, you will receive a403 Forbidden response:

@jdennes
Copy link
Member

Thanks for this,@ax3l. ✨

I've added comments with recommendations inline. If you'd like to add a commit with those changes, I'd be happy to merge this.

@ax3l
Copy link
ContributorAuthor

Hi@jdennes, thanks for the feedback and the ✨
I am happy I could contribute something.

jdennes added a commit that referenced this pull requestNov 29, 2013
More thorough documentation of 403 response when User-Agent header is invalid.
@jdennesjdennes merged commitd4ccaec intogithub:masterNov 29, 2013
bhuga pushed a commit that referenced this pull requestJan 19, 2015
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ax3l@jdennes

[8]ページ先頭

©2009-2025 Movatter.jp