http

How to use HTTP GET request in C# with SSL? (protocol violation)

I am currently trying to get a response from a server that is using SSL in C#. I have the code to do this in Java, but it looks like they do not translate 1:1. I do have some code that I found that works for regular pages, but not for the one I need (maybe because of the SSL thing). Here is the code: WebRequest request = We...

http streaming

is http streaming possible without using any streaming servers? ...

How To get Cookies from this strange Domain?

Hey guys, I have a problem. I have situation where domain in m_domainTable starts with "." (dot), how can I get cookies from this kinda domain ? I can't create Uri with for example http://.testdomain.com ...

Detecting the character encoding of an HTTP POST request

I'm building a web service and have a node that accepts a POST to create a new resource. The resource expects one of two content-types - an XML format I'll be defining, or form-encoded variables. The idea is that consuming applications can POST XML directly and benefit from better validation etc., but there's also an HTML interface tha...

How have you ever interacted with a Nabaztag?

The Nabaztag I ordered has arrived. I know there is an API to interact with the critter from your own software. Have also seen links to libraries in Perl and .NET among others, and have started work myself on a simple .NET Compact Framework 3.5 library for interacting with the bunny from my mobile phone. I have seen at least one applica...

Is NAS / SAN + HTTP server a good match?

Is NAS / SAN + HTTP server a good solution for serving large number of static files over the internet? ...

Detecting EOF / TCP teardown using Java sockets from Javascript

I'm creating a Java socket in Javascript, sending an HTTP request and receiving a response correctly but I seem to be unable to detect an EOF or the server closing the socket at the end. What am I doing wrong? The problem is we never exit the outermost while loop - the server stops transmitting and (presumably) closes its end of the conn...

Should a web server's firewall block outbound HTTP traffic over port 80?

I understand the need for putting a web server in a DMZ and blocking inbound traffic to all ports except 80 and 443. I can also see why you should probably also block most outbound traffic in case the server is compromised. But is it necessary to block outbound HTTP traffic over port 80? If so, why? A lot of web applications these days ...

Are there any viable alternatives to "classic" cookie authentication?

Is there any way (apart from HTTP authentication, which I gather is inherently insecure over the Internet?) for a "real life" website to handle logins and authentication rather than the traditional way, using session cookies? ...

What is the best way to send web form authentication data over HTTP?

A company I know is in discussions to firm up its password security policy across all its web application products. Right now they are sending username / password authentication in POST forms over HTTP, and thus, they are being sent plaintext. The simplest solution to the problem is simply to require HTTPS for logon across all our appl...

How can I talk to UniProt over HTTP in Python?

I'm trying to get some results from UniProt, which is a protein database (details are not important). I'm trying to use some script that translates from one kind of ID to another. I was able to do this manually on the browser, but could not do it in Python. In http://www.uniprot.org/faq/28 there are some sample scripts. I tried the Per...

How can I write a caching HTTP proxy in Perl?

I intend to write a simple HTTP proxy in Perl using the HTTP::Proxy module. I'm clear with the very basic task of how to create a proxy and basic filters and stuff. But what I cannot understand is how to manually force-serve a file through cache. Basically, the scenario is this that I run this proxy in computer A. The user on computer ...

Difference between Content-Range and Range headers?

Hi What is the difference between HTTP headers Content-Range and Range? When should each be used? I am trying to stream an audio file from a particular byte offset. Should I use Content-Range or Range header? Thanks ...

WebDAV with J2ME

Is there a way to use WebDAV with J2ME (some libraries or manual coding)? I've tried: - javax.microedition.io.HttpConnection, but "SEARCH" method not supported there - javax.microedition.io.SocketConnection with Http request - nothing returns in response Maybe something wrong with my code or HTTP header: String response = ""; Strin...

Comparing HTTP and FTP for transferring files

What are the advantages (or limitations) of one over the other for transferring files over the Internet? (I am aware of secure forms of both protocols. I'd like to hear comparisons through personal experiences in terms of performance, reliability, file size limitations etc.) ...

implementing a download manager that supports resuming

hi, I intend on writing a small download manager in C++ that supports resuming (and multiple connections per download). From the info I gathered so far, when sending the http request I need to add a header field with a key of "Range" and the value "bytes=startoff-endoff". Then the server returns a http response with the data between th...

Most supported way to protect flatfiles (sqlite db) from HTTP access?

I am developing a PHP application that uses SQLite as database management system, MySQL and PostgreSQL etc. is not an alternative (although I would really like to use pgsql), because I want the setup to be very beginner-friendly and zero-headache alike. Now many people use a shared hosting, and alot of them only offer direct FTP access t...

How to request for gzipped pages from web servers through ruby scripts?

I have a ruby script that goes and saves web pages from various sites, how do i make sure that it checks if the server can send gzipped files and saves them if available... any help would be great! ...

can pylons + authkit ignore particular responses with 401 status?

hey all ... i am writing a pylons app, and I am using authkit for authentication/authorization. if a user is not logged in and hits a page that requires authorization, authkit swallows the 401 (not authenticated) response and redirects to a login page. this is great for the web interface, but not great for our web services. when an una...

Http protocol content-length

I am working on a simple download application. While making a request for the following file both firefox and my application doesn't get the content-length field. But if i make the request using wget server does send the content-length field. I did change wgets user agent string to test and it still got the content-length field. Any ide...