http

Ways to track the referring page to create other links?

I need to be able to determine which page the user just came from to determine which links to display, such as breadcrumbs or links to the previous next item. This is basically the HTTP_REFERER functionality in PHP, but I need a way of tracking it across multiple pages. I also need to "support" the back button. I have noticed that Faceb...

Free tools for local HTTP packet sniffing/intercepting?

I'm currently using HTTP Analyzer V5 trial version which expires very soon. Are there any [good] free tools for sniffing and inspecting the contents of HTTP packets, in a similar way to the above mentioned tool? ...

Why does Comet need chunked-encoding response?

I read some articles about Comet tech. All of them mentioned that the long-life HTTP response should be Transfer-Encoding: chunked . I'm wondering why it should be chunked-encoded. If the response is not chunked-encoded, the client javascript can still read and parse the responded text, right? Is there any special reason that Comet resp...

Adding custom HTTP headers in java

Hello, I'm trying to create a simulation for our web Portal and need to add custom HTTP headers. I am to assume the user has already been authenticated and these headers are just for storing user information (ie, "test-header: role=user; oem=blahblah; id=123;"). I've setup a filter to extract the header information but I can't find a...

HTTP testing tool, easily send POST/GET/PUT

I'm in the need of a tool to help debugging a webapp - anyone know of some simple client tools that allow you to easily send and construct customizable POST/GET/PUT/DELETE HTTP requests ? ...

How do I get an edit token for Mediawiki?

Hello, I want to get an edit token via a HTTP POST command. The API documentation says only Edit token. You can get one of these through prop=info Using action=query&prop=info&titles=Main Page&intoken=edit does not give me a token. How to get it? ...

Is there a mod_perl2/Perl 5 equivalent to PHP's ignore_user_abort()?

I'm writing an internal service that needs to touch a mod_perl2 instance for a long-running-process. The job is fired from a HTTP POST, and them mod_perl handler picks it up and does the work. It could take a long time, and is ready to be handled asynchronously, so I was hoping I could terminate the HTTP connection while it is running....

Is folder uploading possible in PHP?

Is there any way to upload an entire folder using PHP? ...

Apache2: Environment variables for user http

Hello, Is it possible for the apache2 user, http, to have environment variables like normal users do? How would I go about setting those up, if possible? ...

Tomcat 6 HTTP log rolling and purging

We run our web app in an Apache Tomcat 6 container. Our code uses SLF4J and Logback and rolls/purges just fine. The Tomcat log (catalina, stdout, etc.) just get deleted on a Tomcat service restart. The problem is we also are doing some HTTP logging. As far as anyone can tell it's coming from this line in the Tomcat server.xml file. <Va...

REST - what error to throw when a partly-invalid request is sent.

Hey guys, I'm developing a REST api. To simplify my question, I have an API that allows people to create a new blogpost. Blogposts can live in categories, and categories are specified by a category id. If a user would supply a category-id that doesn't exist, which HTTP error code is the most appropriate? 404 for Not Found seems bad, s...

When downloading a file using FileStream, why does page error message refers to aspx page name, not file name?

After building a filepath (path, below) in a string (I am aware of Path in System.IO, but am using someone else's code and do not have the opportunity to refactor it to use Path). I am using a FileStream to deliver the file to the user (see below): FileStream myStream = new FileStream(path, FileMode.Open, FileAccess.Read); long fileSi...

(HTTP Error 500-Internal Server Error) when attempting to download doc from google doc api

I am attempting to download a document from my google apps account using the Google Documents List Data API and when i attempt to download a document from the server I get an HTTP error code 500. I am able to authenticate against the documents service using the clientLogin strategy. Using the token i can then search my document feed ...

How to allow secure login across multiple domains.

I have a web based application that allows a user to point their DNS at my IP and my app will serve up their content based on the domain name I see in the HTTP host header. I should point out this is done by the application, not by the actual HTTP server(apache), it is a rebranded app sort of thing. The problem I have is that I would l...

How can I test if my connection pool is working in a correct way?

I'm implementing a SOAP client using Apache Axis 2. Since the SOAP client must handle heavy number of requests I am using a connection pool. To do that I had to set a few transport layer configuration of my stub that was generated from a WSDL file: stub._getServiceClient().getOptions().setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Const...

How to Force the page to be loaded only within an IFrame ?

Hi, I have a set of asp.net pages which I wish they should only be accessible or loaded when they are loaded from an IFrame. If an attempt is made to access the pages directly via browser address bar then the page should not be displayed at all or display the message to the user. I tried using cookies and sesions, but they are not that...

Is there a practical HTTP Header length limit?

I have a web application that adds contextual information to XmlHttpRequest objects using the setRequestHeader API. I am using a custom header name (e.g. X-Foo) and a JSON structured value. It isn't part of the URL QueryString or POST body because it is meta information about the request. Is there a practical size limit to the header ...

HTTP status code and DNS round robin

Suppose I have two servers and I have set up DNS round robin as following: www IN A 192.168.0.2 www IN A 192.168.0.3 From this FAQ, it states that "all of the latest browsers (IE, Firefox, Safari, and Chrome) support a client retry (sometimes called browser retry). So when it times out because a server is down, it will retry...

Why doesn't all web traffic by default use https for encryption? (or an encrypted http)

Possible Duplicate: Will it ever be possible to run all web traffic via HTTPS? Why is the concept of having secure communication using encryption tied to confirming the website's identity in https? Wouldn't all users of the web benefit from even having their http traffic encrypted using a 256 bit key? There are tons of sites t...

Send XML via HTTP Post to IP:Port

Ok so to start off, I'm not using any sort of web service. Right now I don't know a whole lot about the application receiving the XML other than it receives it. Big help there I know. I didn't write the receiving application but my company doesn't have any useful ways of testing the XML transmission phase. I basically want to send an XM...