http

Local server on iPad

We have an application which would involve HTTP live streaming. As per the documentation, I can encode my streams and provide the encryption key url (if the key is stored on remote server) in the index file (m3u8). I want to know if it is possible to store the key locally on the ipad and refer to it locally somehow in the index file. Is ...

Automating a form post in Firefox

I go to a web form, enter some info into a number of fields on the form, click the Submit button (which does a POST) and get results. I do this frequently and would like to automate this process. I mainly use Firefox. I've looked at Watir but perhaps overkill for my needs. Suggestions? ...

HTTP connection in Android

How to create an Http Connection to retrive a web page content to my android? Please post example code for this. ...

Safari doesn't respect Cache-Control HTTP headers?

Using a variety of resources, I've come up with the following django middleware to prevent browser caching for authenticated users: class NoBrowserCachingMiddleware: def add_to_header(self, response, key, value): if response.has_header(key): values = re.split(r'\s*,\s*', response[key]) if not value in values: ...

Post message on a wall of Facebook in Android

How to post message to Facebook using HTTP in Android? Maybe there are more simple ways? ...

How to change the target frame of a web response

Is it possible to change the target frame in my web response? I make a request with target=_parent, but depending on how that request is processed I would like to change the target frame. Is there something I can set on my HttpServletResponse to change the target frame? ...

Is it possible to answer an http request sent to a local network broadcast address?

If I open a browser and send a request to http://255.255.255.255, is it possible have a web server, on the same subnet, listening and respond? ...

How to add custom html to the beginning of the proxy output?

Hi, I have a proxy server, but i want to add ads to the beginning of the output like many proxy providers do, but i don't know how to do that? is there an easy way like making a pac file or something like that? Note: The proxy is really normal, and can be accessed with an ip and port. Thanks ...

How to make a proxy using a php script?

Hi, Let's say i got a vps hosting with a dedicated ip, can i make a curl php script that receives a url, fetch it, and output it, and make all this as a proxy server, so i can put my vps ip in the proxy settings of the browser. Is there any way to do that? Note: Please don't suggest me a web based proxy like glype. Thanks ...

Is it possible to have a http client open another connection to the server or other users?

I would like to make a browser based game with multiple gamers in the same environment. So if I did a first person shooter type of game would a client be able to open a udp connection with the server? ...

Read a segment of a file in Java / Android

I'm sure this might be a simple question, but unfortunately this is my first time using Java and working the Android SDK. I am uploading files on Android using the Apache HTTP libraries, in particular using the MultipartEntity. I'm uploading to a service that allows me to send them chunks of the file, and once complete, they'll reassem...

How to resume download in PYTHON, using urlretrieve function??

Can anyone tell me how to resume a download? I'm using urlretrieve function. If there is an interruption, the download restarts from the beginning. I want the program to read the size of localfile (which I m able to do) and then resume the download from that very byte onwards. ...

Sending XML over HTTP with Rails

I am dealing with a third-party api here and I need to send HTTP Post request represented in XML. How should I go about doing this in Rails? Which library/method if any will allow me to do this? ...

How to download web pages in C# with the same behavior as using a web browser?

I have this site I want to get information from. To get the file that I need, I need to go through several pages with cookies and to submit a form. I already have a code that deals with the cookie, but to submit the form is much trickier since the site is in ASP.NET, which means the form contains the view state. Is there some smarter w...

Preferred Java way to ping a HTTP Url for availability

I need a monitor class that regularly checks whether a given HTTP URL is available. I can take care of the "regularly" part using the Spring TaskExecutor abstraction, so that's not the topic here. The Question is: What is the preferred way to ping a URL in java? Here is my current code as a starting point: try{ final URLConnection ...

Request URL formatting

I am developing an iPhone application from where I need to be able to post a new topic in Yahoo finance message boar at http://messages.finance.yahoo.com/mb/KERX. How do I format the request URL? PLease xcuse my ignorence m very new in this kind of work. I just need the base url to use and the method that will post my topic to the messag...

Can I change a favicon daily

I'm working on a calendar app site for internal use here. It's basically a wrapper for a google calendar page, but there will be some extra stuff at the top with the calendar down below. One kind of "fun" thing I'd like to do with this is change up the favicon for the page each day - I'm using a kind of calendar image and I'd like it t...

Help me with posting with Net::HTTP

I am using a third-party API (Spreadshirt's API) and in order to perform a basket creation, I need to send an xml through a POST request. I am trying to do this with the available Net::HTTP functions and this is how I am doing it def get_session @time = Time.now.to_i * 1000 #get the current time as integer @sha1 = Digest::SH...

Should I throw a 404 to a request like /photo.php?id=123 if photo #123 does not exist?

The script will be called from a URL like example.com/photo.php?id=123 or example.com/photos/123 depending on if the have the pretty URLs featured enabled. If photo #123 does not exist, a request to example.com/photos/123 should throw a 404 error. But, what about example.com/photo.php?id=123? ...

urllib2.urlopen throws 404 exception for urls that browser opens

Hi. The following url (and others like it) can be opened in a browser but causes urllib2.urlopen to throw a 404 exception: http://store.ovi.com/#/applications?categoryId=20&fragment=1&page=1 geturl() returns the same url (no redirect). The headers are copied and pasted from firebug. I tried passing in the headers as a dictionar...