http

What takes precedence: the ETag or Last-Modified HTTP header?

For two subsequent requests, which of the following two headers is given more weight by browsers should one of them change: ETag or Last-Modified? ...

Can't terminate BizTalk instances in isolated adapter

Can anyone explain how I can remove service instances ? - I've got a few which the BizTalk console shows as "Running" - they are all in the Isolated Adapter - tried doing a Stop with Full Stop option ... - tried the Terminate Instance option ... - even tried deleting the BizTalk application But they're still there ?? my bad, ...

Displaying a jpeg from a URL in labview

I need to make a labview VI that will display a jpeg image from a URL. (the url is generated based on some data) I've found a way to display an image from the hard drive (Read JPEG File), so what I probably need is just a way to download it to a temporary file. All I've found are some low level TCP client VI's. Is there an easier way? ...

Accessing Jump Links (the part of the URL after a hasch character, #) from the code behind

Hi! Anyone know if it's possible to access the name of a jump link in c# code? I'm doing some url Rewriting stuff and I'm thinking I might not be able to see that part of the URL. So basically, my URL looks a little something like this: http://www.mysite.com/Terms.aspx#Term1 And I want to access "Term1". I can't see it in the Se...

Can a blackberry HTTP request error out immediately if there's no connection available?

I have an HTTP connection, opened by HttpConnection c = (HttpConnection)Connector.open(url); where url is one of: http://foo.bar;deviceside=false http://foo.bar;deviceside=false;ConnectionType=mds-public http://foo.bar;deviceside=true;ConnectionUID=xxxxxxx http://foo.bar;deviceside=true;interface=wifi Is there any way to cause the...

CInternetSession::OpenURL on Windows Mobile causes error 12029 (cannot connect)

I'm trying to access data using HTTP by calling CInternetSession::OpenUrl on Windows Mobile 5 (coding in C++ with MFC). I always get an exception with error code 12029 (cannot connect). I suspect that I need to use the Connection Manager API to create a connection first. Can someone confirm that? I am going to try coding it up, based o...

How can I access request headers that don't appear in $_SERVER?

I am attempting to create a REST API in PHP and I'd like to implement an authentication scheme similar to Amazon's S3 approach. This involves setting a custom 'Authorization' header in the request. I had thought I would be able to access the header with $_SERVER['HTTP_AUTHORIZATION'], but it's nowhere to be found in var_dump($_SERVER). ...

Correlate application logs (Coldfusion/J2EE) with IIS logs to debug client network problems

I've seen some clients complaining about slowness of my website lately and I'm pretty sure that the problem is related to their network. I'd like to be able to justify this to myself more thoroughly and also be able to more proactively reach out to clients that appear to be having network issues before they come banging on my door. If ...

Is there an accepted best-practice on making asynchronous HTTP requests in Android?

I've seen any number of examples and they all seem to solve this problem differently. Basically I just want the simplest way to make the request that won't lock the main thread and is cancelable. It also doesn't help that we have (at least) 2 HTTP libraries to choose from, java.net.* (such as HttpURLConnection) and org.apache.http.*. ...

Unable to authenticate to SSL site in java: "pathLenConstraint violated - this cert must be the last cert in the certification path"

Hi, I'm trying to read from a secure (i.e. SSL) web page, in Java code. I'm trying to use both URLConnection (java.net) and Apache's HTTPClient. In both cases, when I make the request, I get this exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.securit...

How to display the size of a HTTP request in Fiddler?

I'd like to display the size of each request in the session list of fiddler. What I tried so far, was to add a custom column in the CustomRules.js file: public static BindUIColumn("RequestSize") function CalcMethodCol(oS: Session) { if (null != oS.requestBodyBytes) return oS.requestBodyBytes.Length; //this is the relevant line e...

.NET WCF Can't Decode "Chunked" response.

I am calling an axis web service from WCF. The request works just fine but I get back null values. Using Fiddler I was able to determine that the response is coming base as Transfer-Encoding: chunked. This means that there are control characters in in the response BEFORE the xml. WCF does NOT throw an error. It just moves on and the...

Reading HTTP Header in ActionScript2

In AS2, I need to get a URL. In the header of the HTTP response, a cookie is set. Is it possible to read the header of the HTTP response and get the cookie's data? ...

Intercept Http call to SSL certificate

Is there a way to intercept a call made by WebBrowser to SSL (within in an asp.net application)? I need to pass parameters to http-headers at runtime before the request is made. Example: if I type "http://test.com", the browser communicates with the server and returns "https://test1.com" as the secured url. I should be be able to inter...

How to check if a file exists on a server using c# and the WebClient class

In my application I use the WebClient class to download files from a Webserver by simply calling the DownloadFile method. Now I need to check whether a certain file exists prior to downloading it (or in case I just want to make sure that it exists). I've got two questions with that: What is the best way to check whether a file exists o...

How can I verify that my web site responds with correct HTTP status codes?

I want to verify that my custom-made error pages return the correct HTTP status codes. 200 OK 301 Moved Permanently 401 Unauthorized 404 Not Found 500 Internal Server Error etc. How do I make my web browser show me the code? ...

Make Django return response as a "different filename"

I have a Django view which returns an HttpResponse with a special MIME type to make the user's browser "download" the file instead of view it in the browser. The problem is that the default filename that the response will be saved as is the URL which the user tried to access. Is there any way to include a default filename in the HttpRe...

Returning http status codes in Python CGI

Is it possible to send a status code other than 200 via a python cgi script (such as 301 redirect) ...

tutorial on using flash or java servlet to upload microphone data from browser to server?

There was a question on how to get data from a microphone on a client to a server via an HTTP browser, and the answer was "use flash or maybe a java servlet applet". Fine, but how? Is there any sample code or tutorial out there? Can it be done with a vanilla server or do I need adobe media server? ...

How to detect HTTP status from JavaScript

I want to detect in a script, which could be deployed beyond my control, whether the page was delivered with a HTTP status of 200, 404 or 500 etc. This can't be done, right? ...