2
голосов
7ответов
451 просмотров

Why would you not use https on your public facing website?

Why would you not use https on your public facing website? For SEO purposes? For performance reasons? Why don't more companies use https on their public facing site. Even the founder of mint.com mentions not using https on his public facing site" http://cnettv.cnet.com/rr03-mint-ceo-aaron-patze...

2
голосов
2ответов
758 просмотров

Do I need PHP to serve an HTTP Header with the correct content-type for RSS/ATOM?

I want to send my RSS/Atom feeds with the correct Content-type header, can I do this without access to PHP or any other server-side language? The goal is for the browser to treat the file as a feed and not just a plain XML file.

6
голосов
4ответов
6758 просмотров

non-blocking read/log from an http stream

I have a client that connects to an HTTP stream and logs the text data it consumes. I send the streaming server an HTTP GET request... The server replies and continuously publishes data... It will either publish text or send a ping (text) message regularly... and will never close the connect...

5
голосов
5ответов
7658 просмотров

Multipart Downloading in C#?

Please excuse my ignorance on the subject. I would like to write an application in C# that can download files off a server the same way DownThemAll does. DownThemAll seems to open four connections to the HTTP server to download the same file. I was just wondering if there are any existing librar...

2
голосов
4ответов
977 просмотров

How can I make an HTTP GET request from Perl?

I'm trying to write my first Perl program. If you think that Perl is a bad language for the task at hand tell me what language would solve it better. The program tests connectivity between given machine and remote Apache server. At first program requests the directory listing from the Apache ser...

0
голосов
3ответов
2187 просмотров

Obfuscating server headers

I have a WSGI application running in PythonPaste. I've noticed that the default 'Server' header leaks a fair amount of information ("Server: PasteWSGIServer/0.5 Python/2.6"). My knee jerk reaction is to change it...but I'm curious what others think. Is there any utility in the server header, ...

0
голосов
1ответов
76 просмотров

CSS browser cache issue, Is img would have same issue

There is known css cache issue when you change your css, browser is not going to realize it unless time expires and everyone seems to be using querystring like ?version=29347 to update css when it changes on server. But does img has the same issue? When img changes on server, is browser detects ...

8
голосов
3ответов
4482 просмотров

Will browsers request /favicon.ico or <link> first?

I want to set a favicon to be requested from a static file server instead of the main web server for performance optimization. If I specify a &lt;link rel="shortcut icon" href="http://cdn.site.com/favicon.ico"&gt; but also have a /favicon.ico in my site root as a fallback, which will browsers p...

2
голосов
5ответов
1557 просмотров

html: what effects does 'form' have on the layout of a page

I thought that an html form has no effect on the layout of a page, and that it is just a way to group fields to send their values to the server in a single request. However, I notices that when I remove the form tag, the layout changes. Where can I find an explanation of visual effects of the

5
голосов
5ответов
2505 просмотров

Sending estimate HTTP Content-Length from Servlet etc

I often need to generate content dynamically from a servlet / restlet or whatever, and don't know the length ahead of time. If the client is a browser, the progress bar doesn't work properly, because I haven't set the Content-Length header. Is there any way of setting an estimated content length,...

4
голосов
1ответов
1096 просмотров

What's the deal with dontEscape support in Uri? .NET 3.5

Documentation state that dontEscape is deprecated and always false. However it actually works. Is it a good idea to use it anyway, or is there any other alternative to send non RFC compliant Http requests? Sample Code: Dim U As New Uri("http://www.google.com/&gt;", True) Dim W As New Net.WebC...

20
голосов
3ответов
29954 просмотров

What's the correct encoding of HTTP get request strings?

Does the HTTP standard or something define which encoding should be used on special characters before they are encoded in url with %XXs? If it doesn't define is there a way define which encoding is used? It seems that most browsers send the data in utf-8.

0
голосов
1ответов
1007 просмотров

didReceiveData of NSMutableUrlRequest never triggered

I’m new in iphone development world and I’m trying to call a web service using the HTTP method POST. To do that I'm using the NSMutableUrlRequest. My problem is that the DidReceiveData delegate is never called and the NSUrlConnection doesn’t return null. Here is my code : - (void)connection:(...

1
голосов
2ответов
500 просмотров

A minimalist, non-enterprisey approach for a SOAP server in Python

I need to implement a small test utility which consumes extremely simple SOAP XML (HTTP POST) messages. This is a protocol which I have to support, and it's not my design decision to use SOAP (just trying to prevent those "why do you use protocol X?" answers) I'd like to use stuff that's alread...

2
голосов
4ответов
1695 просмотров

How to check the cause for a HTTP request latency/waiting time?

I issue a simple GET request to my server, and it's coming back after ~1.2 seconds on average (using firebug NET tab, the "waiting for reqponse" part- not even the whole reponse time) My ping to the server is 0.250 Using Passenger with rails 2.3.3, in the rails log the request is taking ~0.023 ...

0
голосов
3ответов
78 просмотров

Is there some way to determine the client to my HTTP SOAP API currently?

I know that user agent can be faked easily when connecting through HTTP. I want to ensure access to my SOAP API only from iPhone devices. We don't know how many users will be using this when it is released but it might be a lot and we can't handle traffic from outside of the devices. Any other me...

14
голосов
5ответов
9989 просмотров

What is the easiest way to use the HEAD command of HTTP in PHP?

I would like to send the HEAD command of the Hypertext Transfer Protocol to a server in PHP to retrieve the header, but not the content or a URL. How do I do this in an efficient way? The probably most common use-case is to check for dead web links. For this I only need the reply code of the HTT...

0
голосов
2ответов
2473 просмотров

Tomcat, HTTP, OPTIONS

Note: I am new to Tomcat... I am getting this message in the Tomcat localhost_access_log: 127.0.0.1 - - [09/Oct/2009:09:37:30 -0700] "OPTIONS /stl/foo HTTP/1.1" 200 - Can anyone explain to me where the OPTIONS comes from? I am using a 3rd party library (DirectJngine) but in perusing the source...

6
голосов
3ответов
1671 просмотров

Simple AtomPub server library

What simple AtomPub server libraries with file- or DB-based backends can you recommend? Unix-style servers that "do one thing, do it well" are especially welcome. Maybe even libraries in Python?

1
голосов
1ответов
597 просмотров

HTML - form field is not sent when containing special characters

I have a &lt;form&gt; with several text inputs and a textarea. The documents Content-Type header is text/html; charset=ISO-8859-1 and in the &lt;head&gt;-part I have a meta-tag with the same content-type: &lt;meta http-equiv="Content-type" content="text/html;charset=iso-8859-1" /&gt;. But when I ...

2
голосов
3ответов
632 просмотров

J2me Httpconnection,which one is better get or post?

In J2ME ,Which connection type is better?Get or post.Which one is faster?which one uses less bandwidth?and which one is supported by most of the handsets?What are the advantages and disadvantages of both?

1
голосов
1ответов
6102 просмотров

MSXML2.XMLHTTP Request to validate entered URL in ASP Classic

Thanks in advance for any help received. I want to allow our client to enter a URL into a text field which then checks whether the URL exists and works. There are 3 possible outcomes I want to check for: A status of 200 - OK, A status of 500 - Server Error, Or a status of 404 - page not found. ...

1
голосов
1ответов
5978 просмотров

Android: How to communicate and exchange objects with a Local Service?

So far I've a class for a simple local service. What I want to do is to send requests to this local service from different activies in my application. Depending on the parameters of these requests the service will connect via HttpClient to a webserver and receive a JSONObject and return it to the...

2
голосов
1ответов
346 просмотров

Please help me trace how charsets are handled every step of the way

We all know how easy character sets are on the web, yet every time you think you got it right, a foreign charset bites you in the butt. So I'd like to trace the steps of what happens in a fictional scenario I will describe below. I'm going to try and put down my understanding as well as possible ...

0
голосов
4ответов
881 просмотров

http, https &amp; ajax bypass, maybe?

I have a server script that I need to pass data to from the browser without reloading the page (aka ajax). The data is sensitive so should be sent via https. The page however is on the http layer. Because of same domain/protocol restriction, the browser doesn't allow this. I'm thinking of cheati...

0
голосов
3ответов
720 просмотров

Python HTTP server with XML-RPC

I have a server that has to respond to HTTP and XML-RPC requests. Right now I have an instance of SimpleXMLRPCServer, and an instance of BaseHTTPServer.HTTPServer with a custom request handler, running on different ports. I'd like to run both services on a single port. I think it should be poss...

3
голосов
3ответов
1434 просмотров

Perform an action and redirecting to the same URL doesn't refresh the page

We are working on a new web site using Apache, Python and Django. In the development phase, no problem but once binding to Apache, using Firefox 3.5.3, we got a strange problem. We stand on : http://website.fr/search/ When we want to change the ordering of the research, we are sending the use...

14
голосов
4ответов
8491 просмотров

HTTP Download very Big File

I'm working at a web application in Python/Twisted. I want the user to be able to download a very big file (&gt; 100 Mb). I don't want to load all the file in memory (of the server), of course. server side I have this idea: ... request.setHeader('Content-Type', 'text/plain') fp = open(fileName...

109
голосов
2ответов
61073 просмотров

Find out HTTP method in PHP

How can I find out which method (usually GET or POST) is used for the current request?

0
голосов
1ответов
255 просмотров

Cancelling an HTTP authentication login?

Im working on a site that uses an old school http authentication log in. The problem is if someone reached the log in prompt by mistake and presses the cancel button the log in box disappears and then reappears a total of 3 times before sending the user off to an ugly "authentication required" p...