http

Rails 3, HTTP extensions (WebDAV) and Rack App mounting

Hello, 1 The following is more to point out to the code devs an issue of rails that can be percieved as a flaw. 2 And also me asking some oppinions from people who know better. I want to add WebDAV to my Rails 3 App with Warden authentication. My warden middleware is injected via Devise. http://github.com/chrisroberts/dav4rack ...

REST calls over XMPP

Hi, I want to make a solution where I can use XMPP chat clients connected to gtalk, resolving web services/REST calls meant for a LAN (behind firewall proxy etc) and transferring over to the other chat client on another different LAN (behind other firewall proxy etc). I have narrowed down on Smack API, but being a newbie in XMPP and sm...

How can I access the captcha image that was generated when the page was loaded?

On some websites, when you want to login, you need to enter a captcha as well. If I want to provide support for an user to enter a captcha into my application ( which will then log into the website ), how would I do this? My problem is that the link to the captcha image is like this: example.com/captcha , and it serves a different image...

HTTP Server Programming

Hello all, I'm attempting to write my own http 1.1 server, just for fun and learning about more about HTTP, sockets, and threading. I've gotten a good start i think with only delivering static pages (using c, which I would prefer to stay in for the time being). I have a test page I wrote a while ago and deliver it's ~50 files in 124ms...

Http POST request url contains '['

I am working with SharePoint using http post request. My url contains '[' so I am getting some exception. Does anybody knows how to send a Post or Get request if the url contains '[' or ']' character? ...

Adding HTTP header to all outgoing packets on Windows?

I am developing a Windows application that will live in the system tray. The application can be enabled/disabled by the user. Whenever the user enables it, it needs to listen/sniff HTTP traffic and add a specific HTTP header on all outgoing packets. I think it can be done by changing the system or browser settings to be localhost:my_po...

How to process a large number of ajax queries without hanging up ?

Hello, I am processing a csv file to import each rows in a Database. For each row, I've got to ask Google Maps API to get its latitude and longitude coordinates so I can take some milliseconds for each row. To give some feedback to the user, I choose to add each row with an AJAX POST request to the server API in order to check the val...

How to use pastebin from shell script?

Is it possible to use pastebin (may be via their "API" functionality [http://www.pastebin.com/api.php] ) inside bash shell scripts? In detail i mean: how do i send http-post? And how do i get back the url? Thanks ahead ...

How can I access a user role in Drupal from a separate application?

Is there a plugin/standard HTTP API for accessing user roles/permissions in a Drupal 6 instance from other applications, e.g., on different hosts? Our organization uses Shibboleth to allow easy authentication across all our hosts, but I'd like to use our central Drupal 6 installation to manage user roles rather than storing roles data i...

(Mobile) Browser support for Cross-Origin Resource Sharing?

I'm building a site that uses w3c CORS to make oAuth-signed HTTP requests to a remote server. Mozilla has a great document explaining how to make and receive CORS requests, and there's good support in firefox, chrome, and safari. Does anyone maintain a matrix of browser support for CORS features (e.g. preflight OPTIONS requests for cro...

HTTP protocol: end of a message body

Hi, I built a program that parses the header and I would like to read the message body in case I receive a POST. For headers, I have been able to look for to determine when the header ends. I am having more issues for the message body. Am I supposed to look at "Content-Length" field to know when to stop reading input? In my current co...

Websocket session between two users

Greets to all! I want to create private messaging based on websockets. It is possible to implement session between two users using websockets? ...

How to define a success-event for http-requests with JavaScript/jQuery?

Considering a http-request and the server will answer with a pdf. I like to show a spinner, while the request is processing. How to do that? ...

How can I extract non-standard HTTP headers using Perl's LWP?

I'm working with a web application that sends some non-standard HTTP headers in its response to a login request. The header in question is: SSO_STATUS: LoginFailed I tried to extract it with LWP::Response as $response->header('SSO_STATUS') but it does not work. It does work for standard headers such as Set-Cookie, Expires etc. Is th...

PHP upload file with resume functionality

Hi I have a question, I want to do an upload script that can take rather big files 500MB, 1GB and upload it with resume functionality. Is this possible with just PHP or is there other solution like Java Applet, Flash and which one would be best for this case? ...

Submitting an HTML form in Android without WebView

I was given an assignment to develop a very simple weather app in Android using the data given from http://forecast.weather.gov/zipcity.php This would be my first actual android app, my only other experience is watching/reading many tutorials on getting started. To give some background information of the app, it simply needs to have ...

Is a Session-Less Design feasible?

Just brainstorming some ideas for a Web App I'm building soon. One of the cornerstones of the Web is Session Handling: Have the user log in, send a cookie with magic binary encoded pixie dust, trust the user blindly afterwards. I just wonder if it's feasible to completely eliminate 'traditional' sessions for a web app that would normal...

JSP - Not able to maintain session between http page and https page

I can't seem to find the one right answer to my problem. I'm being overwhelmed with information I'm finding on the internet, and I have no idea what I should do. My setup is as follows : Apache server (front end), Tomcat 6.0 (back end), RapidSSL certificate is on the Apache server, my site is made up of Java Server Pages. The problem ...

How to quickly test an HTTP post response in an Android emulator

Let's say I want to perform a quick HTTP post to a website within my android app. If I were to set up the http client and send the post all in the onCreate method of the main screen (inside the UI thread) just for testing purposes, what would I use to quickly see what the response is to the post? I tried something quick and dirty below...

How do boundaries work in multipart post requests?

I trying to upload a file from an iPhone to a server. I'm trying to avoid using any libraries that aren't made by apple, and from what I can tell it looks like I'll need to go pretty low level on constructing my request. Can someone tell me what the "boundary" is in a multipart/form-data request and how to use it properly? ...