I'm struggling with the automated data collection of a PHP script from a webserver. The files in question contain meteo data and are updated every 10 minutes. Weirdly enough, the 'file modified' date on the webserver doesn't change.
A simple fopen('http://...')-command tries to get the freshest version of the last file in this directory...
I have a user who is intermittently receiving an HTTP 405 when clicking a link within my application. There is nothing funny about the link, as far as I can see...
<a id="ctl00_ctlNavigationMenu_viewTransfersLink" href="Navigate.ashx?target=6">- View Transfers</a>
As I said, most of the time the link executes successfully. However, ...
I have a IN/OUT ratio hit counting system on my site. When a user is sent to my site, I grab the referrer, strip the domain, look up the domain and +1 to hits_in. Very simple. What I discovered thou is, if a user refreshes the page, the referrer is resent to the site, and it counts it as another +1. Whats even worse is that if user click...
http://code.google.com/p/mongoose/
http://shttpd.sourceforge.net/shttpd.1.txt
Trying to configure the lightweight web server shttpd now called mongoose to execute CGI scripts in C.
Does it need a seperate CGI interpreter for C?
A download of shttpd on source forge had separate interpreter exe for perl and php cgi but not sure if t...
I want to bounce an idea around. I have been building web services and web applications for over a decade now, and have more recently been focusing on providing as RESTful a service as possible (eg. using the same URI for both browsers and API clients, but having them modify accept: to decide if to send XML or XHTML).
One big sticking p...
I have a website hosted on a provider which doesn't give me with a fixed ip adress so I cannot use https. I would like to edit some page using a webform but in a secure fashion.
The client would be an iphone type device, so a java or flash applet would be out of the question.
Is there a way to still have a secure connection between th...
I am doing some http request with WinHttp.lib,
while Get data with Range header, such as
"GET someURL\r\n Range: bytes=4096-8191,0-4095",
received the respone data after response header like this(according to RFC2616):
================================
--46228a661764c4210
Content-type: text/plain
Content-range: bytes 4096-8191/1406...
If a web server is going to serve out say 100GB per day would it be better for it to do so in 10,000 10MB sessions or 200,000 500kB sessions.
The reason for this question is I'm wondering if there would be any advantage, disadvantage or neither to sites that mirror content to allow clients to exploit HTTP's start-in-the-middle feature t...
Hi,
I have a servlet which processes a request for a long time. It suppose
to keep doing stuff in the loop inside doPost and send data through
response's out writer. Effectively that continuously appends data in
the clients browser .
But the problems accures when client just closes the browser. Inspite
of the broken connection the respo...
I am trying to see if a URL exists or not, and if it does not exist reset the variable containing the URL to an error page/image. However my attempt below sets every instance of PIC_URL to noimage.gif, regardless of if it exists and is accessible or not. What am I missing?
if (@fopen($_REQUEST[$PIC_URL],"r"))
{
$status = "1";
}
else ...
I hear that I can use Comet as a server push technology along with my Ajax code to increase the performance of my web applications.
How mature this Comet technology?
Is it supported by all web servers, programming languages and browsers?
What are the disadvantages of using Comet?
...
Hello everyone,
Here is my code at both client side and server side. My code is simple, just upload a file to an ASP.Net web site.
My client code throws exception when it works on Vista (x64, Enterprise, SP1), but works fine on Windows Server 2003.
Any ideas?
10.10.12.162 is my server address.
[Code]
Client:
static void Main(str...
Question: I recall reviewing someone else's PHP code once and he had a function or class method that rolled all GET and POST variables into a single plain old object that could then be passed around. If the same name-value pair appeared in both GET and POST, POST would win.
Is there a well-coded PHP add-on out there of any sort that doe...
I wish to download a web page, which may be in any possible text encoding, and save it as UTF16LE. Assuming I can determine the text's encoding (by examining the HTTP header, HTML header, and/or BOM), how do I convert the text?
I am using Delphi 2009. Unfortunately, the help files do not explain how to get from any encoding to a Unico...
I would like to benchmark a website that our company is developing. It will consist of multiple web- and backend-servers.
To be able to properly simulate a large amount of request, I was thinking about using our dev machines (approx 15 Xp/Vista) and a few spare Red Hat servers as benchmarking clients.
Is there any tool that would let ...
This is probably an easy question, but I want to understand better how Apache works with virtual hosts. I am setting up virtual hosts because I work on multiple websites at once and I don't want to use subdirectories. I was pretty much using the default Apache httpd.conf file with the DocumentRoot pointing to something like "/www". I ...
I understand it's a standard practice to look at both these variables. Of course they can easily be spoofed. I'm curious how often can you expect these values (especially the HTTP_X_FORWARDED_FOR) to contain genuine information and not just be scrambled or have their values stripped away?
Anyone with the experience or statistics on this...
Going over the file references in a FileReferenceList calling upload on each one means the files are uploaded as separate requests.
I want to upload a bunch of file in one POST (and I already have a ASHX handler that will accept it).
Any ideas?
...
Hi,
I'm playing with Windmill (similar to selenium) with is fun but one of the requirements is that is must be run over http. The project I'm working on is a fat client web app, all of our unit tests are just run on the local file system as there is no need for HTTP as all of the data services are mocked.
So basically what I'm looking ...
Hi,
I asked a previous question here but after reading the answers realised I hadn't done a very good job of defining my requirements.
Here's what I'm after:
Cross platform
Drag, drop and start
Preferably a single file
So to sum up I want something that I can just drag into a folder, start up and then it will start servering over h...