http

Streaming jquery(JS files) from a CDN (Google)

This one is a case of not doing your homework.:-) Apart from dynamic loading advantage, does it make sense to include a JavaScript library(jQuery in my case ) from a Google server when I can load it from my server as a single file comprised of the 19kb jQuery zip file + the additional JavaScript code I have written – all compressed wi...

Use HTTPWebRequest to get remote page's title

I have a web service that acts as an interface between a farm of websites and some analytics software. Part of the analytics tracking requires harvesting the page title. Rather than passing it from the webpage to the web service, I would like to use HTTPWebRequest to call the page. I have code that will get the entire page and parse ou...

How to print out the HttpWebRequest in C#?

I'm having a problem with a POST I'm doing using the HttpWebRequest object from C#. In order to analyze the problem I would like to know exactly what is being sent over the wire. The problem is that I'm also using HTTPS so I can't sniff the wire. I need some way of printing out to the Console all the relevant information of the HttpWebRe...

Elegant way of downloading images to iPhone

Hi PHP5.2.x back end. The text data transfer is using JSON objects. Am looking at how best to transfer around 10, 30kB PNG images from the server to the iPhone client. Have looked at Base64 encoding the images on the server and using JSON to transport. However this does come with a 30% overhead in increased filesize. Perhaps a sim...

Chunked Encoding Implementation in .NET (or at least pseudo code)

I wrote a raw TCP client for HTTP/HTTPS requests, however I'm having problems with chunked encoding responses. HTTP/1.1 is requirement therefore I should support it. Raw TCP is a business requirement that I need to keep, therefore I can't switch to .NET HTTPWebRequest/HTTPWebResponse However if there is way to convert a RAW HTTP Request...

Converting Raw HTTP Request into HTTPWebRequest Object

In .NET is it possible to convert a raw HTTP request to HTTPWebRequest object? I'm sure .NET internally doing it. Any idea which part of the .NET is actually handling this? Can I call it or is there any external library which allows raw HTTP connections? ...

Http Web Service Load Test

I have a web service I'm trying to load test. I created a program that spawns threads to simulate multiple users connecting to the service and making a request. Each thread makes "some number" of requests before it dies. Each new request is made as soon as it is ready - there is little to no delay between getting a response and making...

Disabling PUT TRACE DELETE request in Apache Tomcat 6.0

I need to disable PUT, DELETE & TRACE HTTP requests on my Application Server, Apache Tomcat 6.0. All other sources, i have searched till now, have directed me towards the limit parameter in httpd.conf, Hence I'd put it before-hand that I am not using Apache Web Server, and requests are directly being handled by Tomcat, and so there is n...

How can I disable HTTP Methods for Tomcat 5.5.27

Please let me know how can I disable HTTP MEthods like OPTIONS, PUT, DELETE for the web server Apache Coyote HTTP 1.1 Connector (Tomcat 5.5.27) ...

How can I remove default banner of web server from response - Apache http1.1 coyote

Please let me know how can I remove default banner of web server from response - Apache http1.1 coyote ...

Http Request - Bypass DNS [.Net]

Is it possible (and if yes, how) to bypass DNS when doing a HTTP request ? I want to hit directly a front-end with an HTTP request, without getting through NLB but with the correct host header. As I have the IP of my server, I just need to bypass the DNS. I tried to use WebRequest, replacing the URL with the IP and setting the Host he...

Does HTTP use UDP

this might be a silly question: Does http use the user datagram protocol ever? for example if one is streaming a mp3 or a video over the web using http does it internally use UDP for the transportation? ...

Does Apache log cancelled downloads?

If a user requests a large file from an Apache web server, but cancels the download before it completes, is this logged by Apache? Can I tell from the log file which responses were not sent fully, and how many bytes were sent? ...

HTTP Bad Request error when requesting a WCF service contract

I have a WCF service with the following configuration: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="MetadataEnabled"> <serviceDebug includeExceptionDetailInFaults="true" /> <serviceMetadata httpGetEnabled="true" /> </behavior> </serviceBe...

HTTP headers encoding/decoding in Java

A custom HTTP header is being passed to a Servlet application for authentication purposes. The header value must be able to contain accents and other non-ASCII characters, so must be in a certain encoding (ideally UTF-8). I am provided with this piece of Java code by the developers who control the authentication environment: String f...

Consuming remote web services from client-side script

From what I understand, due to the "same origin policy" enforcement in current browsers, it's impossible to obtain data from an XmlHttpRequest sent to a different domain than the Javascript's original domain. I have close to zero experience regarding this matter, so I'm confused about web services being unusable from Javascript. Does it...

Name for HTTP Request+Response

There's one thing I haven't found in rfc 2616 and that's a "canonical" name for a request/response pair. Is there such thing? 4.1 Message Types HTTP messages consist of requests from client to server and responses from server to client. HTTP-message = Request | Response ; HTTP/1.1 messages Taking this as a temp...

Is the only way of passing POST parameters in HTML through a form?

Hi, In HTML, you can send data from one page to another using a GET request in a couple of ways: http://www.example.com/somepage.php?data=1 ...or... <form action="somepage.php" method="get"> <input type="hidden" name="data" value="1" /> <input type="submit" value="Submit"> </form> With a POST request though, I've only seen dat...

HTTP Caching, Browsers weirdeness and everything else!

Yesterday I've tried to get serious about rightly caching some PHP generated pages (think "Articles with comments"). Big fail. Long story short: I set the ETag header, set the Last-Modified one and check server side every Article browser request with them to see if I can send back a 304. The problem is simple: the browser (tried with F...

Posting base64 encoded files to an asp.net 1.1 page

We are making an automated patching application and would like to post files on production server through asp.net page (or maybe a web service), since we can only access production server via http. The page should accept files and store them to appropriate location. The path to files will be declared in external XML file. So, is it possi...