Questions tagged [custom-headers]
114 questions
41
votes
4 answers
Add my custom http header to Spring RestTemplate request / extend RestTemplate
My current code:
RestTemplate restTemplate = new RestTemplate();
restTemplate.getMessageConverters().add(new MappingJackson2HttpMessageConverter());
Mall[] malls = restTemplate.getForObject(url, Mall[].class);
I need to add some custom headers for…
![](../../users/profiles/1209216.webp)
user1209216
- 5,410
- 7
- 45
- 95
13
votes
4 answers
Selenium PhantomJS custom headers in Python
I want to add "custom headers" to Selenium PhantomJS in python.
These are the headers I wanna add.
headers = { 'Accept':'*/*',
'Accept-Encoding':'gzip, deflate, sdch',
'Accept-Language':'en-US,en;q=0.8',
…
![](../../users/profiles/5255935.webp)
Sumit Jha
- 1,837
- 1
- 17
- 30
10
votes
3 answers
chromium - send custom header info on initial page load c#
Or How to inject a custom header into the initial request to a site when new-ing up an instance of the ChromiumWebBrowser.
I'm a noob with Chromium and could really use some help. I have a winforms app with a CEF window. K, no prob so far. What I…
![](../../users/profiles/5085990.webp)
JackJack
- 101
- 1
- 1
- 6
7
votes
1 answer
Adding custom HTTP headers to nginx X-Accel-Redirect
I am serving restricted downloads in rails using X-Accel-Redirect with nginx. To validate my downloads in client app, i am trying to send the checksum in the non standard HTTP header Content-MD5 to the X-Accel-Redirect request. But this is not…
![](../../users/profiles/97572.webp)
RameshVel
- 60,384
- 28
- 166
- 207
7
votes
1 answer
Django custom response headers
I need to set custom response headers in Django project.
Here is code from facts/urls.py:
d = {
'app_name': 'facts',
'model_name': 'Fact'
}
urlpatterns = patterns('',
(r'^$', 'facts.main', d),
)
This approach shows data from model, but…
![](../../users/profiles/1835857.webp)
Phantom
- 1,686
- 4
- 17
- 31
5
votes
3 answers
Resttemplate GET Request with Custom Headers
I need to send a GET request with a header: Content-Type: application/camiant-msr-v2.0+xml. I expect an XML response from the server. I tested the request and response with Postman and everything is good. But when I try to do it in Spring with…
![](../../users/profiles/2190546.webp)
J Freebird
- 2,984
- 3
- 32
- 72
5
votes
3 answers
Is it Possible to Make Cross-Domain Requests in Javascript AND Set Custom Headers?
Since you can't apply custom headers on JSONP calls, how do I make cross domain requests AND apply custom headers using jQuery?
I'm basically trying to access google docs with jQuery and need to pass an authentication token:
var token =…
![](../../users/profiles/169992.webp)
Lance Pollard
- 66,757
- 77
- 237
- 416
4
votes
2 answers