Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http referer #516

Closed
cascarrabias13 opened this issue Apr 5, 2014 · 4 comments
Closed

Http referer #516

cascarrabias13 opened this issue Apr 5, 2014 · 4 comments
Assignees
Labels
Milestone

Comments

@cascarrabias13
Copy link

Is there a way to attach a http referer header?

@ciuchino2
Copy link

AsyncHttpClient client = new AsyncHttpClient();
client.addHeader("Referer", "wheneveryouwant");

@cascarrabias13
Copy link
Author

Thanks mate, what difference would it be with:

Header[] headers = {new BasicHeader("Referer","site.com")};

Thanks, again ;)

@ciuchino2
Copy link

I think no one, but I could be wrong...

@smarek
Copy link
Member

smarek commented Apr 21, 2014

Both approaches are correct.

@smarek smarek closed this as completed Apr 21, 2014
@smarek smarek added this to the 1.4.5 milestone Apr 21, 2014
@smarek smarek self-assigned this Apr 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants