hey guys,
i have a proxy server running on my local machine used to cache images while surfing. I set up my browser with a proxy to 127.0.0.1, receive the HTTP requests, take the data and send it back to the browser. It works fine for everything except large images. When I receive the image info, it only displays half the image (ex.: the...
I have an application running with debug=True on a remote host somewhere. Now somehow every time I access REMOTE_ADDR it returns 127.0.0.1 no matter where the request is from.
I'm not sure where to start and why this is happening.
...
Hi,
I'm trying to work out the algorithm to tell if non-binary files on the web have changed or not. I was going to go with:
LastModified datetime from header, and then if these aren't present fallback to
ContentLength from header
I'm finding however that for alot of websites the LastModified for the HTML pages are actually just...
I have a very simple problem and I am absolutely amazed that I haven't seen anything on this specifically. I am attempting to follow best practices for copying a file that is hosted on a webserver going through a proxy server (which does not require auth) using python3.
i have done similar things using python 2.5 but I am really coming...
Hi,
I have some fairly boiler-plate Ruby code (running on Linux) which sends a GET request to a server ...
req = Net::HTTP::Get.new(path)
req.content_type = 'text/plain; charset=utf-8'
req.body = ''
port = 443
res = Net::HTTP.new($host, port)
res.use_ssl = true
res.start do |http|
t = Benchmark.measure do
_return = http...
In my iPhone application I need to upload images to a server. I don't worry much about security and stuffs, just need a fast and reliable method. I can embed my image data on the HTTP post request, or I can create a FTP connection to the server (using the SimpleFTPSample from Apple). The disadvantage of each method is:
- HTTP: time out i...
Hi,
Q1 - Is this a bug in .net, or is the webserver I'm using for testing ( Mongoose ) not server up the header field Last-Modified in the format it should?
So in C# VS2008 if I make the call:
response = (HttpWebResponse)request.GetResponse();
Console.Out.WriteLine(" - LM = " + response.LastModified);
I get: ProtocolViolationExceptio...
I tried to post this question on serverfault but no luck so far.
I have a local testing environment in a Fedora virtual machine.
Strangely, resources (css and js files) don't seem to load. Looking at Firebug, I see that the browser sends the HTTP request with "Range bytes=0-". The server responds with either an empty 200 OK or an empty ...
I have to implement an HTTP server for a class in C++, but after a connection is accepted, recv() just returns -1. I posted my code belowe, if anyone could help it would be much appreciated.
int main( int argc, char* argv[] )
{
// Interpret the command line arguments
unsigned short port = 8080;
char* base_directory = NULL;
bas...
In an application I need to use Socket connections as well as Http requests/responses in Java, I have done some work with Tomcat but I think it handles only HTTP requests/responses.
I was thinking of using Java Networking(java.net.Socket and java.net.ServerSocket), make a jar and run it on the server to handle the sockets and use Apache...
Why place all of your Javascript code in one file? Is it possible and is it make sense to split into smaller logical file units?
...
Firefox is sending my ".domain.tld" cookies when I go to sub.domain.tld.
How can I make sure that the browser only sends cookies of ".sub.domain.tld" and not ".domain.tld"?
...
Hello
I am writing a web service which has to be able to reply to multiple http requests.
From what I understand, I will need to deal with HttpListener.
What is the best method to receive a http request(or better, multiple http requests), translate it and send the results back to the caller? How safe is to use HttpListeners on threads?...
I am trying to build a RESTful api with Django to share mp3s -- right up front: it's a toy app, never going into production, so it doesn't need to scale or worry (I hope) about copyright devils.
My problem now is that I have a Django view that I want to be the endpoint for HTTP PUT requests. The headers of the PUT will contain the metad...
I've been trying to find a way to upload a video from an Android device to an API, but I haven't found a good way to do it. It seems most of the information I've found online is fairly out of date (a lot of it being from last year). Most of them are using a method like this: http://getablogger.blogspot.com/2008/01/android-how-to-post-f...
I'm developing a RESTful API for a client. The problem is, he's using a rather obscure language called Clarion. It's proprietary and closed, and the docs are not freely available online.
Whenever we discuss passing data from his code to mine, and back again, he starts talking about "ftp file uploads" and direct server-to-server SQL. Nee...
Have a "check"?
For example...
I would have a dictionary with the parameters to sent to the POST.
params = {'text':'how are you?', 'subject':'hi'}
then I would have
opener.open('theurl',urllib.urlencode(params))
The question is...those parameters work well with text-boxes, since I just put the value in there. How about radio but...
Is there a good open source library in C++ which will allow me to grab the contents of an URL (the response to a POST or a GET, like a web service's response) to a string?
...
I’m developing an Intranet application and I want to make a secure authentication.
One approach can be use “https”. The problem is that the server doesn’t have a trusted certificate, therefore is a bit annoying for the client because the browser doesn’t trust in the certificate and complaints with a scary message.
Using http will com...
Is there a way to download huge and still growing file using partial-download feature ? It seems that code like this
import urllib
urllib.urlretrieve ("http://www.example.com/huge-growing-file", "huge-growing-file")
downloads file from scratch every time it executed. I'd like to fetch just the newly written data and download from scra...