http

Sending and receiving a file to an aspx script.

Hi Guys, I have a need to send a file to an aspx script so that it can be processed and then returned. We have 2 servers (let's call them A and B) and I have a website on server A that allows users to upload a video. When they upload the video I need to pass the file to a script on Server B because I have some software on server B that...

Use timeouts in a HTTP Server?

Should I use Timeouts in a HTTP Server implementation? E.g. if I get a request and create a HTTP Connection to listen to requests with a separate Thread, should this thread use timeouts? Currently I don't use Timeouts in Debug Code, only in Production code, as to find the lockups in the Server. ...

How can i get the page.html#PARAMETERS trought php?

How can I get the value of the URL hash (eg "PARAMETERS" in url "page.html#PARAMETERS") on the server in php? ...

Cookie across HTTP and HTTPS in PHP

How can I set a cookie in PHP that is readable both in HTTP and HTTPS? If this isn't possible, what can be done? Set two cookies? ...

PHP Proxy Script for Indirect Browsing

I'm looking for a PHP script that I can install on my own server that allows indirect HTTP browsing with my server as a proxy. I want it to automatically convert all tags within document to redirect to my server as well, so that once I'm on a site, I can still click through any of the links and see all images. In the past I've used htt...

What characters must be escaped in an HTTP query string?

This question concerns the characters in the query string portion of the URL, which appear after the ? mark character. Per Wikipedia, certain characters are left as is and others are encoded (usually with a % escape sequence). I've been trying to track this down to actual specifications, so that I understand the justification behind ev...

How can I display a "waiting" indicator on a web page whilst the http request is being fulfilled by the webserver?

Hi, Background - I have a web application for which a request takes several seconds. Question - How could I display a "waiting" type indicator (e.g. spinner) to the user after they initiate the request, until the actual HTTP request response comes back from the server? Notes - I'm assuming this to be a generic web development questio...

Android HttpPost: how to get the result

I have been trying long to send an HttpPost request and retrieve response but even though I was able to make a connection I don't yet get how to get the string message which is returned by the request-response HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://www.myurl.com/app/page.php"); ...

javascript iframe link referrer

A page loads another domain in an iframe. If javascript inside the iframe clicks on a link in the iframe which domain will the referrer be? ...

For HTTP responses with Content-Types suggesting character data, which charset should be assumed by the client if none is specified?

If no charset parameter is specified in the Content-Type header, RFC2616 section 3.7.1 seems to imply ISO8859-1 should be assumed for media types of subtype "text": When no explicit charset parameter is provided by the sender, media subtypes of the "text" type are defined to have a default charset value of "ISO-8859-1" when r...

How can I redirect AppEngine 500 Errors to another location?

How can I redirect 500 Errors from google appengine to another location. The following is an example scenario: All requests to http://example.appspot.com/testfile.ext in case of a 500 error should redirect to http://www.example.com/testfile.ext This is basically combining the 500 error with a 302 redirect. Is it possible if not is th...

What does a ^ sign mean in a URL?

What is the meaning of a ^ sign in a URL? I needed to crawl some link data from a webpage and I was using a simple handwritten PHP crawler for it. The crawler usually works fine; then I came to a URL like this: http://www.example.com/example.asp?x7=3^^^^^select%20col1,col2%20from%20table%20where%20recordid%3E=20^^^^^ This URL works fi...

Why am I getting this error in Django (I'm trying to do a 304 not modified)

def list_ajax(reqest): #q = request.GET.get('q',None) #get all where var = q. return ... list_ajax = condition(etag_func=list_ajax)(list_ajax) As you can see, I'm trying to return a 304 to the client if the result is the same. But, I am getting this Django error, why?: Traceback: File "/usr/local/lib/python2.6/dist-package...

Are django sessisons safe to use for mission critical signup forms?

What is the best practice when designing a mission critical signup form when it comes to using django-powered sessions? Is it generally considered ok to require the user to accept the session cookie? Are there any tips to maximize the percent of users who can accept the session cookie? ...

Android app uploading data to a python server via post

I have successfully implemented this from android to a java httpservlet on google app engine, but I'd like to use python instead for the server side. I'm new to python. Has anyone done this? I have the guestbook example up and running, but I can't seem to send posts from my android app to the server. I'd also like to issue a string res...

Download Multiple files in one HTTP request

hi, how is it possible to download multiple files in one HTTP request? what i mean it's like when you have multiple attachments and you select what you want to download then press download so they will be automaticcaly downloaded and you don't have to click on each one manually. i'm using PHP as a serverside srcipting. thank you ...

Caching of images and script in the _layouts directory

Hi all, I am trying the figure out why the images (or js, or css) in the _layouts directory are not cached by either IE or FF. The authentication on the site collection is NTLM. The _layouts folder has anonymous access enabled in IIS. If I debug with fiddler a page that has been loaded before, I can see the following requests: GET /...

SQL Server Reporting Services proxy timeout (ASP.NET)

Morning, We are using SSRS (2005) and have a ASP.NET frontend using the SSRS WebControl. I've boiled the problem down the time it takes for one particular report to be generated is greater than the timeout on the proxy server. It looks like the way the SSRS web control tries to do things is by performing an HTTP request for the report...

How to hunt down HTTP request?

Trying to optimize one web project. It uses asp.net (webforms), bunch of jquery plugins and whatnot. Problem: there's unnecessary HTTP request to localhost/undefined and that makes every request take ~1s longer than needed. Question: is there any tactic to find guilty code? Clue: undefined makes me think that there's JS involved. Fi...

QNetworkAccessManager handling asynchronous thread

Hi, I am new to QT. I have created object class QNetworkAccessManager main window as parent. Also registered to SIGNAL finished. It is working fine. But I want to know in which thread it will run. Will it block the main thread. If i need to perform sequence of get operation how should I need to write the code. Please give me some sample...