top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Differentiate Client & browser http call using rails

+1 vote
298 views

How can I differentiate the call between client ios app & browser call?
session_controller - create method is being used by both client & rails web application.I want to restrict for web application to use create method. how can I achieve this?

posted Sep 26, 2013 by Dewang Chaudhary

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

I've got a very feeble web server. The crypto handshaking involved in opening an https: connection takes 2-3 seconds. That would be fine if a browser opened a single connection and then sent a series of requests on that connection to load the various elements on a page.

But that's not what browsers do. They all seem to open whole handful of connections (often as many as 8-10) and try to load all the page's elements in parallel. That turns what would be a 3-4 second page load time (using a single connection) into a 20-30 second page load time. Even with plaintext http: connections, the multi-connection page load time is slower than the single-connection load time, but not by as large a factor.

Some browsers have user-preference settings that limit the max number of simultaneous connections to a single server (IIRC the RFCs suggest a max of 4, but most browsers seem to default to a max of 8-16).

What I really need is an HTTP header or meta-tag or something that I can use to tell clients to limit themselves to a single connection.

I haven't been able to find such a thing, but I'm hoping I've overlooked something...

+2 votes

I'm trying to build Git hosting server for a group of people.

  1. I see there are Git hosting that give ability to users to create and manage their repositories. I want to give user ability to create and manage their repository only using http. But in the instruction of http protocol, user with write privileges must login in order to create the repositories.
    Is it can work with http protocol or it must be with ssh?

  2. I would like get recommendation about a software if exist. Is there any software, I can use, that give the ability to see weby and/or visually view status of repositories on the Git server, without cloning or pulling a snapshot from the git server to my local machine and without login to the git server?

0 votes

Question about the http authentication when using the subversion api 1.8.13.

For example using the svn_client_list3' function: Everytime this function is called the first http request does not contain any Authorization header which leads to a 401 Authorization Required' response.

In my opinion this leads to an unnecessary delay when the function is called multiple times and the same credentials could be used.

When calling this function the svn_client_ctx_t contains an svn_auth_baton_t with set default username and default password parameters.

Now to my actual question:

Can this behaviour somehow be changed or is it just designed to work this way? I also know that the version I'm using is not the newest one so if you think an upgrade to a newer version could lead to some performance improvement please let me know.

...