http

How to determine if an HTTP response is complete

I am working on building a simple proxy which will log certain requests which are passed through it. The proxy does not need to interfere with the traffic being passed through it (at this point in the project) and so I am trying to do as little parsing of the raw request/response as possible durring the process (the request and response ...

Actionscript security sandbox violation

I am writing a Photoshop plugin as an ExtendScript (Javascript) file, that then loads up a Flash window, which I will call plugin.swf - My plugin.swf file uses an element to POST to a certain URL. When I load plugin.swf with Internet Explorer, the HTTP POST is completed successfully. When I load plugin.swf via the Javascript (which is...

custom ban page for homebrew website

I understand how to ban an IPs address from my apache webserver using .htaccess: order allow,deny deny from 192.168.44.201 deny from 224.39.163.12 deny from 172.16.7.92 allow from all I'd like to create a custom "You've been banned" page. How could I do this? EDIT: To clarify, I am not trying to create a custom 403 page, as these ar...

form submit in a non secure page

I would like someone to answer this and if possible provide some reference links to back it up (if possible). Need to prove to someone its not secure. If I have a form with the post method on a non-secure page, but the action attribute is pointing to a secure URL, is the submitted form secure? ...

proper http headers to send when switching blog from one domain to another

Heya, Just wondering what the exact correct header is to send along when I redirect requests from one server (eg. abc.com) to another (eg. def.com/blog/). I've got the redirects working right, but always get confused as to the exact header to send along with it. Any help would be greatly appreciated. Thanks. Oliver ...

How to write content type in cakephp ?

Hi, How can i write ["Content-Type"] = "text/xml" in cakephp and in which file i have to include that one. Please Help. Thanks. ...

Why is using a URL containing a colon considered as a "potentially dangerous request"?

Someone (probably a bot) sent a request with the following URL to my ASP.NET 4.0 web forms application (running on IIS 7.0): http://ipaddress-of-my-applications-domain/bla1.bla2.bla3.bla4.bla5:) This caused an System.Web.HttpException. I received a logging email from ASP.NET HealthMonitoring I had configured, telling me: A potentially...

Specify supported media types when sending "415 unsupported media type"

If a clients sends data in an unsupported media type to a HTTP server, the server answers with status "415 unsupported media type". But how to tell the client what media types are supported? Is there a standard or at least a recommended way to do so? Or would it just be written to the response body as text? ...

HTTP header 411 error in asp.net

Hi Guys, I have .aspx file with some simple logic. This file can be accessed only using HTTP Post method. My problem is that in some registration form (regnow) they ask me to supply the url (my .aspx url) and the access method (Post or Get). I select the Post and then they try to access the url and get HTTP 411 error (header missing cont...

What for are the commonly used PKCS-Standards: PKCS#7, PKCS#10 and PKCS#12?

What for are the commonly used PKCS-Standards: PKCS#7, PKCS#10 and PKCS#12? ...

SEO way to handle ajax requests used for reporting

We would like to perform some link tracking in our application but I am unsure of the proper way to handle this. For example with on our search results page we obviously have a bunch of search results. We would like the link for each item to: a) link to the actual item description b) fire off an ajax request to a url that handles link ...

How can I determine on the server-side when an incoming request is HTTPS?

Is there a HTTP environment variable I can use to work this out? ...

Error 400: Request[/editRecordsAction] does not contain handler parameter named

I'm creating a struts app and I am using an dispatch action. This was working a while ago and now has stopped and is holding me up. here is the the action mapping and the action request for one page. It give mes an error on all the pages that use the dispatch action. I get these errors. Error 400: Request[/editRecordsAction] does not co...

Which protocol to choose for a turn-based game server

I am writing a game server for a turn-based game in Java. These are the facts: The speed of the game is slow, so clients need to send data let's say every 8 seconds, and that data is most of the time only a small incremental update (a few dozen bytes), aside from situations like join of the game or list available games etc. The server ...

HTTP POST request not working over 3G

Hi there, When making the following HTTP POST request: NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; [request setHTTPMethod:@"POST"]; NSURLResponse *urlResponse = nil; NSError *error = nil; // execute NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningRespons...

How does HTTP 302 work?

How does HTTP 302 work? I would like to know the internals ...

How can I create a session-local cookie-aware HTTP client in Django?

I'm using a web service backend to provide authentication to Django, and the get_user method must retain a cookie provided by the web service in order to associate with a session. Right now, I make my remote calls just by calling urllib2.urlopen(myTargetService) but this doesn't pass the cookie for the current session along. I have crea...

How to see what Axis2 sends and receives?

I have Axis2 created web service client. This service uses both SSL and WS-Security so I use rampart. I think that my client sends correct query, but I got exception: org.apache.axis2.AxisFault: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security at org.apa...

How to remove unwanted characters.

Hi, I am using cakephp 1.2. I am using httpsocket get method. It works well. But the content is enclosed by quotes.. string(123) "..this is where the content is". I think it is telling the type of response and the number of characters of the output. I have my application in production setup. How can i remove it. I appreciate any h...

twisted web getPage, 2 clients in 2 classes, manage events between the two

Hi All, i'm trying to create a bridge program in twisted.web that receives data from a web server and sends it to another server, thus i'm using 2 getPage applications that i have wrapped in a class for convenience, the class contains all the callbacks and the client "routine".. 1)auth 2)receive data 3)send data, all this is done in a c...