I am trying to download a file from my Java application. But because UrlConnection uses HTTP 1.1 protocol i get a Tranfer Encoding: chunked response in which case i can not find out file size(content-length is not set). From what i could find HTTP version is hard coded in the class and there is no way to change it. Is it somehow possible...
I want to make a website that fills the pagewidth to 100% for all widths (available space) lower or equal to 1280px and for all widths greater than 1280 two filling side bars should appear (like this: |fill|website|fill|).
(How) can i do this without scripts? (by using css settings?)
...
Hi
I have been trying to stream audio from a particular point by using the Range header values but I always get the song right from the beginning. I am doing this through a program so am not sure whether the problem lies in my code or on the server.
How can I find out whether the server supports the Range header param?
Thanks.
...
I'd like to monitor HTTP traffic to/from my PC so I can watch web services interaction. (SOAP and RESTful services) There seems to be a lot of different software out there for this. What do you all recommend?
...
Are there any good HTTP conformance test suites?
I need to test some existing code for the standard compliance and do not want to reinvent the wheel and bump into various corner cases.
I'm not specifying the language I use. I expect suite to be generic enough to be adaptable for my needs – although I'd settle for anything that is sane...
My Java standalone application gets a URL (which points to a file) from the user and I need to hit it and download it. The problem I am facing is that I am not able to encode the HTTP URL address properly...
Example:
URL: http://search.barnesandnoble.com/booksearch/first book.pdf
java.net.URLEncoder.encode(url.toString(), "ISO-8859-...
Is it possible to make simultaneously two requests in parallel to the same server using NSURLConnection?
I'm trying to do it, and it looks like the second request do not start until the first one finishes.
...
I would like to hear some comments about how to manage long lived XMPP connections on a servlet container i.e. Tomcat.
Basically we have a client that submits login credentials to a servlet and we create a XMPPConnection for each session and store it in HttpSession.
To simplistic, the client can perform 4 operations: login, send/receiv...
I am getting an error using the MsXml.ServerXmlHttp object from JScript under classic ASP when the call is asynchronous. The error message is "cannot find window class"
The environment is: Windows Server 2003 SP2; IIS v6; Classic ASP; JScript
When ServerXmlHttp.open is called with asynch = true the error occurs on the send method.
Wh...
I'm putting assets to S3 with expiry headers, which successfully get passed through to CloudFront distributions. However, requests after the expiry don't result in CloudFront requesting a fresh file from the origin server.
I am also finding that query string version tokens don't force a fresh asset, and I don't want to use full, file na...
I'm running into some HTTP caching issues, caused by some downstream apps not putting Cache-Control headers on time-sensitive data. I need to make the case that this is a broken situation.
Is there any succinct statement available online about permissible or common response-handling behaviors by caches and agents when the Cache-Control ...
I am looking to download a file from a http url to a local file. The file is large enough that I want to download it and save it chunks rather than read() and write() the whole file as a single giant string.
The interface of urllib.urlretrieve is essentially what I want. However, I cannot see a way to set request headers when downloadin...
I'm wondering if there is an enum type in some standard Java class library that defines symbolic constants for all of the valid HTTP response codes. It should support conversion to/from the corresponding integer values.
I'm debugging some Java code that uses javax.ws.rs.core.Response.Status. It works, but it only defines about half of t...
How can I show the 'Save as' dialog box using PHP which will ask the user to download a string as a text file? Basically I will retrieve some values from the database, and want then to be able to download a .txt file which contains this data.
...
I'm looking for a well-supported multithreaded Python HTTP server that supports chunked encoding replies. (I.e. "Transfer-Encoding: chunked" on responses). What's the best HTTP server base to start with for this purpose?
...
Can someone point me in the right direction for implementing proxy-like behavior with C#?
I'm looking to catch HTTP requests from a site, parse, then modify the DOM and show the results. Ideally, this program would run as a proxy on the local machine, but I'm fine with implementing a custom "browser" if needed.
Any suggestions?
...
I'm writing a web-app using Python and Pylons. I need a textbox that is rich (ie, provides the ability to bold/underline/add bullets..etc...). Does anyone know a library or widget I can use?
It doesn't have to be Python/Pylons specific, as it can be a Javascript implementation as well.
Thanks!
...
I'm planning on writing an RPC server in Java. The server needs to accept incoming RPCs - probably over HTTP - and answer them. Fairly basic stuff. Support for 'long polling' or 'hanging' RPCs isn't necessary, so a thread-per-request model ought to be perfectly adequate.
If I were writing this in Python, I would probably use a framework...
I have 50 machines in a LAN and each of these have internet access. Can a program be developed using vc++ which will tell what are all the websites which is being opened by users in each machine?
...
I am working on a project where I need to embed a web server into my C++ application. I am looking for an open-source library supporting SSL, written in C or C++ and with a licensing scheme that will allow me to link it into my existing closed source code. Any suggestions of specific products or where to look first?
...