http

Service php-fpm does not support chkconfig

Everything is working fine. Just that when i chkconfig –add php-fpm It throws me an error Service php-fpm does not support chkconfig php-5.2.13 php-5.2.13-fpm-0.5.13.diff.gz Below is the configuration i use ./configure --enable-fastcgi --enable-fpm --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redha...

Seeking not working in HTML5 audio tag

I have a lighttpd server running locally. If I load a static file on the server (through an html5 audio tag), it plays and seeks fine. However, seeking doesn't work when running a dev server (web.py/CherryPy) or if I return the bytes via a defined action url instead of as a static file. It won't load the duration either. According to t...

How to force client browser to download images from server rather using its cache

Assume a simple aspx data entry page in which admin user can upload an image as well as some other data. They are stored in database and the next time admin visits that page to edit record, image data fetched and a preview generated and saved to disk (using GDI+) and the preview is shown in an image control. This procedure works fine fo...

caching images served by servlet

I'm serving up images from my servlet. The response content type is image/jpeg. I find that images requested from my servlet are not cached. How do I get them to be cached like file image requests normally are? I tried setting Cache-Control: public but to no avail. ...

iPhone webapp: my ressources don't get cached

Hello, First of all, I'd like to say I'm not using any off-line feature from HTML5. I have a web-application which runs on the iPhone. When viewing it from safari, everything works quite well. But when I launch the application from the home screen (to remove the navigation bar), it can be really slow. I checked the logs in Apache and...

How to create a .BAT file to download and unpack a zip file?

How to create a .BAT file to download and unpack a zip file from HTTP server? We have links like http://example.com/folder.zip and absolute folder link like C:\Users\UserName\Some mixed Русский English Adress\ if files from zip exist in directory owerrite them. using only native windows (xp vista win7 etc) BAT functions and files. C...

Problem in accessing wsdl from URL(http) from bpel

HI, I want to access wsdl file that is imported in bpel definition, can i do that or i will have to create local copy and then use it? Because whenever it run the process it gives me this: FATAL - GeronimoLog.fatal(116) | openResource: invalid scheme (should be urn:) http://localhost:9090/axis2/services/Inverse?wsdl I am using ODE en...

Getting HTTP headers from Apache CXF POJO Service

Hi, what is the right method to get http headers from CXF POJO Service? I have folowing code, but it doesn't work: ServerFactoryBean svrFactory = new ServerFactoryBean(); svrFactory.setServiceClass(TestService.class); svrFactory.setAddress("http://localhost:8080/test"); svrFactory.getServiceFactory().setDataBinding(new AegisDatabinding...

How to mass-fetch pages from a website behind authentication in PHP

Yes, yes, i know user and password. I need some trick in php to get logged into a website and retrieve some images/contents, like a normal website. Obviously with a curl o file_get_contents it doesn't work because i'm not authenticated. How i can do? The authentication is normal HTTP auth with POST. Edit: ok thanks for help it works...

Redirected wikipedia request

Hi people, i need to write a program, that can redirect's http://localhost:8080 to en.wikipedia.org, it seems to be easy, but i have some problems(only with wikipedia with another sites works good). I make url to wikipedia: URL url = new URL("http", "en.wikipedia.org", 80, "/wiki"); than URLConnection, extract headers, and when i wan...

How to use http-delete from the shell

Is it possible to send a HTTP DELETE request from the shell and if so, how? ...

Is it possible to set more than one cookie with a single Set-Cookie?

One HTTP Set-Cookie directive can only hold one cookie, is it right? I mean, one single name=value pair? ...

How to integrate mblox sms service via HTTP to send and receive SMS?

Is there any open source scripts or resources available to inetegrate mblox using HTTP in .net ? ...

API for Posting Photos to Panoramio

Hi! Is there any api that able to post photo on Panoramio? ...

Is Http POST limitless?

I heard that POST has no limit in data size it can be send by it, is that true or is there some really high limit? ...

Why is Struts 2 redirectAction not working on Firefox+Firebug ?

I have this problem and it took me some time for me to understand it, so I thought it could save some time to others if I post it here for reference. It doesn't really require an answer, though if someone can explain it or fix it it would be welcome ! Using Struts 2.1.8, I have some actions configured like that : <action name="ReportO...

http error code 12019 in Ajax call

Hi, When executing a ajax call i received a http error code 12019. This call works most of the time, but in rare occasions i get this errorcall. I found that this error code is described as "The requested operation cannot be carried out because the handle supplied is not in the correct state." (@msdn). Can anybody tell me what this mean...

Automatically POST on document creation

In an HTML-document, i want to have a (if possible: invisible) form that POSTs the contents of one text input field to my server as soon as the document is created or if possible within s seconds. The document is created via javascript's open. How can i do that? ...

How to embed cover art in an MP3 file so that the iPhone player displays it when downloaded

I want to be able to provide a URL to a music track, and when that track is played on an iPhone, to show the cover art. I've tried embedding the cover art as an ID3 v2.3 tag, and while desktop players like VLC and Windows Media Player can see it, it seems the iPhone doesn't. Is this possible? Does anyone know of a way to achieve this -...

How to implement session like stackoverflow?

I'm implementing this kink of login: http://jaspan.com/improved_persistent_login_cookie_best_practice In this design a new token issued to the user each new login. So it tells me that I need to Now I need to implement a session, for this login. I'd like to implement session like stackoverflow, so people can have session as soon as they...