1
vote
0answers
11 views

1st party and 3rd party cookies in Internet Explorer

I'm trying to set up a web service that relies on cookies to identify the user. Some times these are 1st party cookies, i.e. the users receive them on my site (e.g. my-site.com); other times the ...
0
votes
1answer
49 views

RawHeaders.Values in Delphi 2010

I'm using the component in delphi indy idhttp 2010 and I have the following problem, I'm trying to get all the values ​​of rawheaders idHTTP1.Request.RawHeaders.Values ​​['User-Agent'], the only one I ...
1
vote
1answer
13 views

Domain in cookies

I'm not sure so please explaine me if you know. I have problem with domain in Cookies. According to the newewst rfc 6265 document it doesn't matter if domain in cookie starting with 'dot' or not. ...
0
votes
2answers
30 views

Is there a standard way in HTTP to specify no content should be returned?

For a PUT or POST (for example), I would like to specify to the server that I don't want any content returned in the response, even if it normally would. Essentially I'm looking for a way to perform ...
0
votes
0answers
25 views

Is this POST request valid?

I'm having an error 400 on nginx for this request: POST /uri/action HTTP/1.1 Host: xxx.com Content-Type: application/x-www-form-urlencoded Content-Length: 79 ...
0
votes
1answer
26 views

Cache dowloaded file on the client

How do I force the browser/client to cache downloaded files? Below is my current script which sends a Last-Modified header if HTTP_IF_MODIFIED_SINCE has the same date as the file. The problem is ...
0
votes
1answer
35 views

HttpClient request to local IIS 8.0 does not produce expected headers in the response

I'm making the following request to a local website running in IIS var httpRequestMessage = new HttpRequestMessage(); httpRequestMessage.RequestUri = new Uri("http://localhost:8081/"); ...
1
vote
0answers
21 views

How “likely” is the HTTP Referer header set?

I want to change the layout of my webpage based on the HTTP Referer value. No security would be compromised whatsoever, as only the look-and-feel of the website would be changed. Are there any ...
0
votes
0answers
44 views

Determining which HTTP headers to forward from nginx to node.js

In this answer http://stackoverflow.com/a/5015178/2308693 the user Joao Da Silva showed what HTTP headers he forwards from nginx to Node.js. How do you know what headers Node.js needs? Are there ...
0
votes
0answers
8 views

Any CDNs that allow custom HTTP headers?

I'm looking for a CDN that will allow the addition of these into the header: header("Access-Control-Allow-Origin: url"); header('Access-Control-Allow-Methods:GET,POST'); ...
0
votes
2answers
22 views

Does the HTTP referer always end at the top-level domain?

I'm assuming the answer is "no" but I haven't been able to find confirmation. If it varies based on language, I'm interested in both the HTTP headers (e.g. PHPs $_SERVER['HTTP_REFERER']) and JS's ...
0
votes
1answer
17 views

urlopen debug doesn't show header values

In python3 ,I was trying to see the header values sent in the request >>from urllib.request import urlopen >> url1='http://diveintopython3.org/examples/feed.xml' >>from http.client ...
0
votes
0answers
32 views

Should i allow end user to drop null fields from the API response?

I know that there are already bunch of questions (Should null values be included in JSON responses from a REST API?) around dropping fields with null values from an api response. My question is - ...
0
votes
1answer
86 views

How to get iframe response http codes onload?

I'm working on an ajax-enabled page and I need to download files without refreshing the page. In order to do this, I added a hidden iframe on the page. <iframe id="iframeDownload" ...
0
votes
0answers
15 views

Yandex-tank - several requests with different http headers

Have anyone tried to use Yandex-tank as http load testing tool? I have a usecase to test a http service with multiple requests containing different path and query params and different http headear. ...
0
votes
1answer
38 views

Return JSON based on “Accept: application/json” from a Symfony2 controller without modifying each controller action

I'm working on an app that I want to offer both JSON and HTML responses. Here's an example action method: /** * Lists all Boards entities. * * @Route("/", name="boards") * @Method("GET") * ...
2
votes
1answer
93 views

Why is Firefox ignoring cache control on Range-based queries?

Web servers have the ability to stream media (audio in this example) to browsers. Browsers use HTML5 controls to play the media. What I'm discovering, however, is that Firefox is caching the media, ...
0
votes
0answers
20 views

Content security policy not working

I am adding to my response header this header: x-content-security-policy default-src 'none'; I would expect no css or images to be loaded on the page, but everything is loaded. What am I doing ...
0
votes
1answer
32 views

How do you add a custom http header?

Hi I am applying to a remote internship and the guy asked me to add a custom http header in the app that I made to apply. I made it with rails and pushed it to heroku, the problem is that I don't ...
0
votes
1answer
29 views

How to reject and HTTP Posts based on content length without parsing the request stream in C#? [duplicate]

Some third party is posting data to our webpage via HTTP Post. I want to set a limit say 1 Kb for HTTP posts, if it is above 1 Kb I need to reject the HTTP post. I don't want to read the whole request ...
3
votes
2answers
68 views

Setting HTTP status code in Bottle?

How do I set the HTTP status code of my response in Bottle? from bottle import app, run, route, Response @route('/') def f(): Response.status = 300 # also tried `Response.status_code = 300` ...
0
votes
1answer
47 views

Determine difference in http request between Python2 and Python3

I am attempting to use Python3 to send metrics to Hosted Graphite. The examples given on the site are Python2, and I have successfully ported the TCP and UDP examples to Python3 (despite my ...
1
vote
2answers
52 views

How to send text/html data to a browser

Hi i asked a question before here : how-can-i-integrate-php-with-my-http-server i programmed a personal web server and i tried to integrate it with PHP using the PHP-CGI , i run a system command ...
0
votes
1answer
20 views

Is correct to send HTML and a PDF file in the same request?

I have to send a PDF to the user, but this PDF is generated by a command line tool executed from PHP (server side). When the user clicks on a link this is executed: window.open($(this).attr('href'), ...
0
votes
0answers
8 views

How are proxy credentials sent to the proxy by default?

On a lot of clients (e.g. Mac OS X Network Configuration, Internet Explorer Network Settings) it is possible to specify proxy credentials. How are these credentials sent to the proxy server? I tried ...
0
votes
1answer
8 views

Resource with cache headers still going out

On a call I want to get cached forever, I put these headers (from the response i see): HTTP/1.1 200 OK X-Powered-By Express Vary Accept-Encoding Cache-Control public, max-age=31536000 Expires ...
0
votes
1answer
25 views

Is it possible to see if AJAX was used just by looking at the HTTP traffic?

I am making a program to monitor my network, and in this program I am reading the HTTP traffic which is going through my network. One thing I want to do is to separate the AJAX HTTP traffic from the ...
0
votes
1answer
29 views

What HTTP status code should be returned when given an invalid ID?

What status code should be returned for a request to delete an object that doesn't exist? public ContentResult DeleteEntity(int id, FormCollection FormData) { Database db = new Database(); ...
0
votes
1answer
44 views

Parse request line of http header

Is there anything inbuilt in java.net to parse the request line on a http request? For example: CONNECT google.com:443 HTTP/1.1 In this case I want to parse the host and port.
0
votes
1answer
40 views

translate curl to .net web request

Here is a curl command from documentation: curl -g "http://ip.ip.ip.ip/test/xyz.jpg?attributes=size" Can i just translate it to HttpReqeust like this? UriBuilder builder = new UriBuilder("http", ...

1 2 3 4 5 28
15 30 50 per page