http

HTTP Browser Spoofing

Hi all, How would i go about making a web server believe that i am using let's say Windows XP instead of Windows 7 via telnet? I am thinking something along the lines of telneting to port 80 and issuing some commands but i am in doubt as to which. Any help would be appreciated! Jake ...

HTTP POST contents in Haskell

I'm trying to post some data to a server in Haskell and the server side is coming up empty. I'm using the Network.HTTP library for the request. module Main (main) where import Network.URI (URI (..), parseURI, uriScheme, uriPath, uriQuery, uriFragment) import Network.HTTP import Network.TCP as TCP main = do conn <- TCP.openSt...

Login Form For Http Basic Auth

Hello everyone, I am running a Perl application named bitlfu.For login it is using something like Apache HTTP Basic Auth but not a form.I want to make form for the login with username and password filed. I have tried JavaScript and PHP with no results till now. So I need help! PS: this kind of url works http://user:[email protected] ...

Client-side HTTP_ACCEPT_LANGUAGE access? JavaScript? I don't see a JQuery wrapper. Static pages to detect preferred language!

I'm trying to access user's language preference w/o using server code. I'm looking for some JavaScript like this: var language_array = jQuery.languagePreferences(); //en-ca,en;q=0.8,en-us;q=0.6,de-de;q=0.4,de;q=0.2 I know I can use HTTP_ACCEPT_LANGUAGE on server side, but what about in JavaScript/JQuery client-side static (non-server...

what's the advantage of using put and delete as opposed to just get and post

Especially for the majority of browsers that don't support it, is there anything aside from just strict standards compliance that justifies the extra development time? ...

In Haskell looking for a package that allows to consume a web response body as a stream

from RWH http://book.realworldhaskell.org/read/extended-example-web-client-programming.html The HTTP library used here does not read the HTTP result lazily. As a result, it can result in the consumption of a large amount of RAM when downloading large files such as podcasts. Other libraries are available that do not have this limitati...

Live HTTP for CURL

I have series of curl commands that I want to translate into straight up HTTP requests. I would like to use some live http utility that would record http requests made while I make the curl commands. And from this, I will translate the curl commands to their corresponding http requests. Any recommendations? ...

Some Browsers always run additional homepage request

Hi, we currently have a strange problem. Some users report problems with our website. As we analyzed the problem, we saw some strange browser behaviors. This is from our apache log (some parts removed): Browser for all log entries: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; 3.1)" [21/Jun/2010:08:55:20 +0200] "GET /123xyz/ HTT...

Django "The view didn't return an HttpResponse object."

Hi there, i have a simple view in wich i'm saving a form. the code seems 'clean',but i can't get rid of the error : "The view didn't return an HttpResponse object." Though i've searched on the web, i did not find a relevant indication. def classroom_privacy(request,classname): theclass = Classroom.objects.get(classname=class...

Making a content generator Apache module that only works for text/html requests

The title of this question may be a bit misleading. I couldn't quite think of anything better. Here is my problem. I am developing an Apache module that needs to manipulate a bit of content in the requested HTML document (this document can be a file on the disk or may be dynamically generated by CGI or PHP) and so I am using libxml2 wit...

Is an AJAX call cross-domain if only the port is different?

The main page is www.myserver.com:80 and the ajax references www.myserver.com:8081. The status code is 0 and the text is null. Is this a cross domain denial? ...

Was the misspelling of the HTTP field name Referer intentional?

I read recently (I can't recall where, or I'd return to that source) that the misspelling of HTTP header field name Referer in the specification was intentional. Is that accurate? If so, why? ...

Basic HTTP Parsing Using Twisted

Hey, I am a newcomer to the Python and Twisted game so excuse the ignorance I will likely be asking this question with. As a sort of first program, I am trying to write a basic HTTP server using twisted.web.sever which would simply print to screen the HTTP request, and then print to screen the HTTP response. I am trying to print the ent...

SimpleHttpConnectionManager being used incorrectly

SimpleHttpConnectionManager being used incorrectly. Be sure that HttpMethod.releaseConnection() is always called and that only one thread and/or method is using this connection manager at a time. Does Anyone know why this error shows up and is causes the files I want to download or to fail and retry or to download uncompleted Thank yo...

How to escape URL-encoded data in POST with HttpWebRequest

I am trying to send an URL-encoded post to a REST API implemented in PHP. The POST data contains two user-provided strings: WebRequest request = HttpWebRequest.Create(new Uri(serverUri, "rest")); request.Method = "POST"; request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8"; request.Headers.Add("Content-Transfer-Encod...

Can subdomain.example.com set a cookie that can be read by example.com?

I simply cannot believe this is quite so hard to determine. Even having read the RFCs, it's not clear to me if a server at subdomain.example.com can set a cookie that can be read by example.com. subdomain.example.com can set a cookie whose Domain attribute is .example.com. RFC 2965 seems to explicitly state that such a cookie will not...

Tamper with first line of URL request, in Firefox

I want to change first line of header, modifying the method and/or URL. The (excellent) Tamperdata firefox plugin allows a developer to modify the headers of a request, but not the URL itself. This latter part is what I want to be able to do. So something like... GET http://foo.com/?foo=foo HTTP/1.1 ... could become ... GET http://b...

Is there a simple ActionScript class that fetches the content from a URL and returns it?

Is there a standard class that simply returns the response received from a URL given a URL? Looking through the documentation, I found mx.servicetags.HTTPService, but I don't think it's what I'm looking for. Update: The request is happening inside of a function and therefore that same function has to return the result. In other words, ...

save screenshot image to file in Flex 4

I need the user of my Flex application to be able to save a snapshot of part of the UI to a local jpg file. I got the screenshot part down - can generate an image out of any given control. However, the only way I see to let the user save the image locally is to send to my server which would return it with the appropriate Content-Disposit...

Numerical equivalent of nameValuePair array list?

Hi Guys, I'm dealing with doubles and looking for the "double" equivalent of this... ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair("lat",lat)); nameValuePairs.add(new BasicNameValuePair("lng",lng)); edit// I'm making a HTTP request, I think need to map the lat val...