http

How to instruct browsers to ignore GET parameters when caching a resource

Is there a way (an http header) to tell browsers not to distinguish between main.css and main.css?someparam=1 when performing caching. According to w3c spec: since some applications have traditionally used GETs and HEADs with query URLs (those containing a "?" in the rel_path part) to perform operations with significant side effects,...

Django HTTPS and HTTP Sessions

Hi, I'm using Django 1.1.1 with the ssl redirect middleware. Sessions data (authentication etc.) created via HTTPS are not available in the HTTP portions of the site. What is the best way to make it available without having to make the entire site HTTPS? ...

How do I cache images on the client for a WPF application?

We are developing a WPF desktop application that is displaying images that are currently being fetched over HTTP. The images are already optimised for quality/size but there is an obvious wait each time that the image is fetched. Is there a way to cache images on the client so that they aren't downloaded each time? ...

How do I get HTTP::Proxy to log filter information?

I'm having some trouble getting filters working with HTTP::Proxy and I just can't seem to figure out what I should add to the logmask() function to get that information. I've got a log file, that part is fine, logging is happening, but no information about filters, although they're implemented and (sometimes) working. I've tried log...

Run Site in xx Second in CMD

Hi Can you help me in CMD. i want to make batch file,like this: when opening this file it must open one web-site and in some second(for example in 10 sec) it must open the second web-site and the third and so and so . Please help me doing this. ...

How does a desktop application get information back from a website?

I'm a desktop application developer. I'm creating a basic website from which to sell an application I've written, and learning some web tech along the way, but haven't learnt that much yet (my chosen CMS - Textpattern - has saved me learning much PHP so far). I want my desktop application to call my website and say "I'm version x.x.x.x"...

Blackberry - Is this a guaranteed approach for detecting a valid connection type?

I've created following two methods for reliably building a connection for making a data connection. So far I haven't had any issues testing this approach with users. I'd love to get some community feedback about this approach and letting me know if anything seems in buildConnectionString(). Please see code below: private static String ...

upload big file using multiple hppt connections in J2ME

I want to upload a big file to a server from a Nokia phone and I use code below. This code works fine for small files. When I want to upload a bigger file (about 10mb) I get an out of memory message. Does anyone knows how can I transform this code to upload the file using multiple httpConnections, sending a chunk of the file with each co...

HTTP GET Request, ASP - I'm lost!

Hi, Using VBScript with ASP I am trying to set up an HTTP GET Request which will visit a page which in turn generates a line of ASCII (non-HTML). I then want to extrapolate that ASCII line which will have 4 values delimited by semicolons back into 4 variables in my original ASP page so that I can take those values and do something with ...

Compare URIs for a search bot?

For a search bot, I am working on a design to: * compare URIs and * determine which URIs are really the same page Dealing with redirects and aliases: Case 1: Redirects Case 2: Aliases e.g. www Case 3: URL parameters e.g. sukshma.net/node#parameter I have two approaches I could follow, one approach is to explicitly check for redirects ...

RESTEasy client framework authentication credentials

RESTEasy (a JAX-RS implementation) has a nice client framework, eg: ServiceApi client = ProxyFactory.create(ServiceApi.class, baseUri); How do you provide HTTP authentication credentials to this client? ...

HTTPLiveHeaders equivalent for IE?

Can anyone let me know if there is any equivalent for Internet explorer like HTTPLiveheader addon for firefox which captures and records all the HTTPrequests etc? I have an windows application that opens an instance of IE and then makes a few requests, authenticates, uploads files etc. I want to monitor all these. Thanks, Pavan ...

Http Error in J2ME app

Hi, I am trying to make an Http connection in a J2ME application. Problem is that it is running fine in the emulator; but in a mobile, it is showing IO exception- Error in Http Operation. Can anyone tell me what prompts this kind of error. Thanks in adv. ...

I need some tool to view Http Request.

It's probably some browser plugin or a proxy. For example, I open google.com, and type something and press 'Search'. And I want to see all params of http-request (like, method, domain, params etc) ...

Secure connection between client and server

Hi, I'm developing a server component that will serve requests for a embedded client, which is also under my control. Right now everything is beta and the security works like this: client sends username / password over https. server returns access token. client makes further requests over http with the access token in a custom header...

Trouble uploading to twitpic

Hi, I am trying to upload a photo using the API and am having an issue that I hope you can help me with. Below, I have pasted the http request to the API (minus the twitter username/password). I am getting an error message back saying image not found, even though the image is there with the proper name "media". I have created a simpl...

Django, Python: Is there a simple way to convert PHP-style bracketed POST keys to multidimensional dict?

Specifically, I got a form that calls a Django service (written using Piston, but I don't think that's relevant), sending via POST something like this: edu_type[3][name] => a edu_type[3][spec] => b edu_type[3][start_year] => c edu_type[3][end_year] => d edu_type[4][0][name] => Cisco edu_type[4][0][spec] => CCNA edu_type[4][0][start_year...

Why don't we send binary around instead of text on http?

It seems that binary would be more compact and can be deserialized in a standard way, why is text used instead? It seems inefficient and web frameworks are forced to do nothing more than screwing around with strings. Why isn't there a binary standard? The web would be way faster and browsers would be able to load binary pages very fas...

What does "result.status_code == 200" in Python mean?

In this little piece of code, what is the fourth line all about? from google.appengine.api import urlfetch url = "http://www.google.com/" result = urlfetch.fetch(url) if result.status_code == 200: doSomethingWithResult(result.content) ...

How can I automate and share sessions between Firefox and Perl?

Is it possible to do part of a web flow in Perl and then transfer the rest of the session to Firefox? I need to retry(with Perl) logging in to a website which returns 500 every now and then on a successful login, transfer the authenticated session to Firefox, from where I can continue my normal browsing. Is this possible? If this is poss...