http-headers

Blank page in IE6

巧了我就是萌 提交于 2019-12-22 13:53:42
问题 A site I am working on that is built using PHP is sometimes showing a completely blank page. There are no error messages on the client or on the server. The same page may display sometimes but not others. All pages are working fine in IE7, Firefox 3, Safari and Opera. All pages are XHTML with this meta element: <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> It appears that I have fixed the problem by adding this PHP code: header('Content-type: text/html;

IE Sending OPTIONS Request for File Downloads

陌路散爱 提交于 2019-12-22 13:30:31
问题 On my site I have a very basic setup: an 'a href' tag that just points to a file. Nothing fancy: <a href="/path/to/my/file.doc">File</a> No fancy javascript, nothing. Some users who are using old IE versions less than 8 have been having spotty problems downloading different files like this. What I've been able to trace it back to is that IE will send an OPTIONS request for the file (and even then not all the time). Since I'm not running a Webdav server, I had mod_security set at the default

Hand rolled SOAP request

陌路散爱 提交于 2019-12-22 11:25:05
问题 I am trying to construct a hand rolled HTTP request in order to return a response from what I thought was a fairly simple SOAP web service call. However, I am having trouble constructing the request properly, and am not getting the response I expect. Applicable wsdl statements: wsdl Target Namespace: targetNamespace="http://tempuri.org/" wsdl Service <wsdl:service name="TrackerService"> <wsdl:port name="BasicHttpBinding_ITrackerService" binding="tns:BasicHttpBinding_ITrackerService"> <soap

How do I convert a unicode header to byte string in Flask?

二次信任 提交于 2019-12-22 11:08:14
问题 I have a flask app that I've been able to get running on my development server. However, when I try to run the same app under mod_wsgi I get an error: TypeError: expected byte string object for header name, value of type unicode found I've tried to convert the headers many different ways but I'm getting the same error: for k,v in dict(request.headers).iteritems(): response.headers[k.encode('latin-1')] = v.encode('latin-1') I've also tried the following but get the same exact error: .encode(

Firefox & IE: Corrupted data when retrieved from cache

孤人 提交于 2019-12-22 10:18:46
问题 I have a request to the server which looks like this: http://localhost/Combine.aspx/flag/file1.js,file2.js,file3.js I have also tried this: http://localhost/Combine.aspx/flag/value/file1.js/file2.js/file3.js It simply combines the three files which it was given: this works fine. Upon the first request from Firefox, the page displays correctly. When the page is refreshed again, the content looks like this: ��������`I�%&/m�{J�J��t��`$�����iG#)�*��eVe]f@�흼��{���{��;�N' In that case, no request

Azure: List OS Images

丶灬走出姿态 提交于 2019-12-22 09:15:20
问题 Im new to windows azure, Ive looked to this documentation, to me it works, Listing Images on gallery. https://management.core.windows.net/subscription-id/services/images But this isnt what Im looking for, Is there a way to list the My Images on my account and not the images on gallery. 回答1: If you run the PowerShell cmdlet Get-AzureVMImage , you'll see all images. As stated by @Gaurav, The ones that correlate to My Images have a PublisherName of User . So, again, using PowerShell, here's how

Are HTTP keep-alive connections possible without content-length headers?

我是研究僧i 提交于 2019-12-22 08:54:59
问题 I understand that in HTTP 1.0, the content of a response is terminated by closing the connection. In HTTP 1.1, keep-alive connections were introduced, enabling multiple requests and responses in a single TCP connection. When multiple messages are sent over the same connection, there needs to be a mechanism that defines where one message ends and the next message starts. By testing, I found out that this works when I set the content-length header in a response. By knowing the content length,

What is the difference between “always” and “onsuccess” in Apache's Header config?

老子叫甜甜 提交于 2019-12-22 08:53:08
问题 I have a website where virtual hosts are defined in /etc/apache2/sites-enabled/ with a header being set with the always option like this: Header always set X-Frame-Options DENY If I now set the same header using .htaccess in the web site's root folder, but without always then the header is returned twice in the server's response. The setting in .htaccess (amongst others): Header set X-Frame-Options DENY The server's response: HTTP/1.1 200 OK Date: Mon, 02 May 2016 16:02:29 GMT Server: Apache

HTTP: Why is wrong sending username and password in get request?

时光怂恿深爱的人放手 提交于 2019-12-22 08:50:36
问题 Genaral practice is when you login, or do something else that requires your username and password, you send it in the body of post request. Also for added security https should be used. In get request these parameters are sent as a part of URL. But in https both body and headers are encrypted, as i understand. So in theory, whether you use https post or get for sending, your data are safe..., in one case attacker will have to decript your header and in other your body. So my question is, if

CORS preflight request returning “403 Forbidden”; subsequent request then only sending in Chrome

丶灬走出姿态 提交于 2019-12-22 07:09:08
问题 After failure using pluploader in this question, I'm now trying FineUploader. After reading up on CORS, I've implemented various headers on my IIS6 server. What seems to happen is that my script fires the first ( preflight ) authorisation request, which fails, but Chrome allows the second ( standard ) request to send anyway - Firefox does not. I presume this is actually a bug on behalf of Chrome, but at least it has allowed me to work out that my script is probably working correctly. Here is