http

Problems with unique links in database: www.doamin/ or domain/

In my website everybody can send some links to other nice websites. All links in my database must by unique, but some links are with 'www.' prefix, and some without. Some ends for '/', some not. For example: |http://www.example.com |http://example.com |http://example.com |http://example.com/ and other problems can be...

Is there a C# or .NET class to handle HTTP Content Negotiation?

Is there a C# or .NET class to handle HTTP Content Negotiation with a User Agent? I would like to be able to supply a list of acceptable Content Types, and have those negotiated with the browser to find the best match. ...

Should I Return "500" or "404" if a Requested Image is not Found?

I work with code written by other people, occasionally I am left somewhat confused and at these times Stack Overflow saves me. Please, save me again. Our site allows people to upload images and later embed them within text in our site like so: <img src="http://site.com/image_script.php?p=some_image_identifier"/&gt; My question is: I...

Where to find xmoov port to C#? (to make Http Pseudo Streaming from c# app)

So I found this beautifull script for FLV video format Http Pseudo Streaming but in is in PHP ( found on http://stream.xmoov.com/ ) So does any one know opensource translations or can translate such PHP code into C#? <?php /* xmoov-php 1.0 Development version 0.9.3 beta by: Eric Lorenzo Benjamin jr. webmas...

404 not found in telnet, works fine in browser

i am having a very irritating problem, when i open a url ( http://celebs.widewallpapers.net/md/a/adriana-lima/1440/Adriana-Lima-1440x900-002.jpg ) in browser, it works fine.. but when i try to access it by telnet on bash, i get 404 not found!! my exact terminal: $ telnet celebs.widewallpapers.net 80 HEAD /md/a/adriana-lima/1440/Adrian...

RESTful Http DELETE method in .NET

I am new to web services. I am dealing with testing APIs in my project. In the previous version the company used GET and POST methods but not PUT and DELETE methods. I need help for the HTTP DELETE method. I have browsed various websites where I found the example code snippets for GET and POST methods, but not for DELETE and PUT methods ...

Best format to submit an autocomplete?

I'm seeking advice on best practice when submitting a varying number of POST variables. Do I use JSON or some character separated list to merge all the values into one field or use a sequence of fields like 'autocomplete1', 'autocomplete2' and so on. Does jQuery have a json encoder? Thanks in advance, Ben ...

Persistant Http client connections in java

I am trying to write a simple Http client application in Java and am a bit confused by the seemingly different ways to establish Http client connections, and efficiently re-use the objects. Current I am using the following steps (I have left out exception handling for simplicity) Iterator<URI> uriIterator = someURIs(); HttpClient clie...

squirrelmail http error

I have install squirrel mail and get this message error when trying to login. 0 : Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? I have create a test user, and when login I type test@localhost I use XAMPP (Basis Package) version 1.7.2 I want to know why the error happen and how to f...

How to change https to http

Hi, I have my website secured using the verisign ssl protection. I realised that the website takes too much time to load due to the fact the https shows on all the pages. I would like to change this and do it in a such a way to allow the https to show only when people are visiting a particular page. I really don't know how to do this. An...

Download single file with multiple connections (PHP)

Is it possible to download a single file with multiple parallel connections through php? ...

Opening safari in iphone app using HTTP post

I'm trying to open the Safari browser in my app using http post. I know how to do this using get, but I can't find anything for http post. Any help would be appreciated. Thanks! ...

VLC Functionality: How to stream an .iso?

I gave a DVD ISO image and would like to use VLC's http function to create URL a user could access, after which the DVD would start up in full screen. I can make this happen by accepting the defaults vlc.exe -I http navigating to localhost:8080 and then browsing and opening the file. How would I modify this activity so that navigatin...

Valid HTTP header? `GET /page.html Http1.0`?

Ok so I've been reading up on HTTP and found this page. This is an example HTTP request that was posted there: GET /http.html Http1.1 Host: www.http.header.free.fr Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, Accept-Language: Fr Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0...

Sending url params and POST body to a MVC 2 Controller

Hi, I'm having some issues trying to make a HTTP PUT (or POST) using WebClient against a MVC 2 controller. The exception is: The parameters dictionary contains a null entry for parameter 'total' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Company(System.Guid, Int32, Int32, System.String)' The controller...

User authentication on a Jersey REST service

I am currently developing a REST application, which is using the Jersey framework. I would like to know a way that I can control user authentication. I have search a lot of places, and the closest article I have found is this: http://weblogs.java.net/blog/2008/03/07/authentication-jersey. However this article can only be used whith a Gl...

Mochiweb's Scalability Features

From all the articles I've read so far about Mochiweb, I've heard this over and over again that Mochiweb provides very good scalability. My question is, how exactly does Mochiweb get its scalability property? Is it from Erlang's inherent scalability properties or does Mochiweb have any additional code that explicitly enables it to scale ...

index of all entries for WordPress blogs

I'm an avid reader of several WordPress(.com) blogs. Is there a simple way (via the API rather than screen scraping) to get an index of all posts (with date, title and URL) so I don't have to manually wade through the back archives? ...

Receiving XML document with python via HTTP

I want to do a very simple webserver in python able to receive XML document over HTTP and then to send as response XML document. Do you have any example? just to understand How arrange the work... many thanks! UPDATE: I need something like this: a client do a post with an xml document: < request > < name>plus< /name> < param>2< /pa...

Writing an http sniffer (or any other application level sniffer)

Dear all, I am trying my hands understanding PCAP libraries. I am able to apply a filter and get the TCP payload at port 80. But what next ? How can I read the HTTP data - suppose I want to know the "User Agent" field value in the http header..how should I proceed ? I have searched the website (and googled a lot too), and could find a re...