Hi,
can you recommend any no-brainer solution for setting up a git repository accessible via http(s, has cleutus suggested)? I have my own http server and I'd like to use it to host some minor private project. At home I can ssh it, but at work firewalls keep me from doing so.
Is there any free way to set up a small private git reposito...
I would like to calculate/estimate the amount of time file will take for download. Is there any way using which this can be achieved using JavaScipt or something else?
What level of accuricy can be achieved ? (+evs / -evs )
I have tries this by downloading small image and then performing maths to get the bandwidth and time needed. But ...
I know this question has been asked several different ways and I've looked/tried many of the suggestions, but not getting anywhere.
I have a site that's mixed http and https where everything /customer and /cart including any subdirectories are https and the rest is http. I'm having a problem with it actually going to https, seems as tho...
Hello everyone!
We're trying to implement a proxy proof of concept but have encountered an interesting question: since a single HTTP connection can, and indeed should, make mutliple requests, and the HTTP transactions are sent via multiple packets (due to TCP's magic) is it possible for a HTTP request to begin in the middle of a packet?...
First of all, I've seen this: http://stackoverflow.com/questions/589669/how-to-redirect-different-sub-domain-requests-to-different-servers But my problem is different.
I have a platform where a user can create a new website using a submdomain. There will be thousands of these, eg abc.mydomain.com, def.mydomain.com . Hopefully if we ar...
I've been reading this book (highly recommended):
And I have a particular question about the ETag chapter. The author says that ETags might harm performance and that you must tune them finely or disable them completely.
I understand the risks, but is it that hard to get ETags right?
I've just made an application that sends an ETag ...
Hi
Im trying to programmatically post to an html form on the internet.I have managed to create a request with parameters in the request body but I can't figure out how to pass in Http Header attributes using the Net::Http library. Any ideas if this is possible?... Any other library that would do it for me ?
res = Net::HTTP.post_form(UR...
How do I send the "Set-Cookie" header when working with a BaseHTTPServerRequestHandler, and Cookie? BaseCookie and children don't provide a method to output the value to be passed into send_header(), and *Cookie.output() does not provide a HTTP line delimiter.
Which Cookie class should I be using? Two have survived into Python3, what ar...
Hi
I want to play video in my app for which I will get urls from server. I got lot of codes but nothing was working. If I add the video as file (*.mp4) in src folder (how we used to add images in the source folder), then I could play the video by using the following code.
Class playerDemoClass = Class.forName("com.rim.samples.multime...
I'm trying to use Ruby to load a webpage over HTTP and check what its status code is. My code looks like this:
require "net/http"
@r = Net::HTTP.get_response(URI.parse(myURL))
return @r.code
However, for some URLs (mostly ones pointing to weird stuff like web counters that won't give a proper response) I'm getting an undefined m...
OK, I know this is a long shot:
Does HTTP offer a way to stream a file out of order? I'm dealing with a binary file format which can almost be streamed, except the header requires some summary data, and it would be a much better user experience if I could stream it.
It seems like it would be really great to be able to send the last pa...
Hi everybody,
if I want to partially download a file and define a single range in the request Header, I get
the byte-stream of the requested file in the response body.
But if i specify multiple ranges as below, I always get for each defined range an additional
response header (wich describes the requested range) within the response bo...
I wish to "retrieve" the cookies sent by the client in my subclass of BaseHTTPRequestHandler.
Firstly I'm unsure of the exact sequence of sending of headers, in a typical HTTP request and response this is my understanding of the sequence of events:
Client sends request (method, path, HTTP version, host, and ALL headers).
The server re...
Hi guys,
I have a link and if a user clicks it I need 2 things to happen: A proper HTTP response is sent to the user (especially with Content-Type: video/mp4) and a video file will automatically begin downloading. I have seen something of the sort with php, but I need it only with html/javascript. Is this possible?
Thanks
Alex
...
I have a Flex client that loads data from a server to display a chart. This data may change, so the client regularly repeats the request. Since the result may require some work to retrieve, I'm going to have the server detect if the result has changed, and issue a 304 status if it hasn't.
I haven't seen any headers in the Flash Player's...
I have Flex application requiring to filter users depending on there database groups. Depending on which group they are, the're is a config.xml file that is use to populate the swf.
Here is how I figure how to do this :
1. The client comes to a .aspx page with a form requiring a username and a password.
2. On the server side I confirm...
Hi,
I'm trying to implement async http in java. Here is the important
part of the code:
for (String urlString : urls)
{
// TODO: try and get rid of these two heap allocations
url = new URL(urlString);
request = new HTTPRequest(url);
request.addHeader(userAgentHeader);
request.addHeader(authorizationHeader);...
Hello, I am trying to use the Rest-client gem to do a few small tasks for my app which uses Authlogic to authenticate users. From Rest-Client's API, I see that one can post data necessary for the log-in process like this:
require 'rest_client'
RestClient.post "http://127.0.0.1:3000/user_sessions", {:user_session => {:username => 'myuser...
My website sometimes loads a bit slow, due to the amount of images loading. I actually have 61 images on my homepage due to all the png overlays and icons. I have considered using sprites or an image map, but I really don't feel like doing this. I know that there can only be 2 requests to my server, so if I host the images elsewhere, it ...
How best to get an array(item=>value) pair as a GET / POST parameter?
In PHP, i can do this:
URL: http://localhost/test/testparam.php?a[one]=100&a[two]=200
this gets the parameter as:
Array
(
[a] => Array
(
[one] => 100
[two] => 200
)
)
Is there any way to accomplish the same in ASP.NE...