http

HTTP request builders for GNU/Linux?

I’m looking for tools for interactively inspecting HTTP servers by manually constructing requests (and viewing responses), under GNU/Linux. Something that would let me quickly specify standard header fields, make a form request body, etc. (netcat doesn’t really excel at this.) Any suggestions? ...

file_get_contents() GET request not showing up on my webserver log

I've got a simple php script to ping some of my domains using file_get_contents(), however I have checked my logs and they are not recording any get requests. I have $result = file_get_contents($url); echo $url. ' pinged ok\n'; where $url for each of the domains is just a simple string of the form http://mydomain.com/, echo verifie...

what is the difference between BaseHTTPServer and SimpleHTTPServer? when and where to use it?

What is the difference between BaseHTTPServer and SimpleHTTPServer? When and where should i use these? ...

Sending XML data using HTTP POST with PHP

I need to send this XML <?xml version="1.0" encoding="UTF-8"><gate><country>NO</country><accessNumber>1900</accessNumber><senderNumber>1900</senderNumber><targetNumber>4792267523</targetNumber><price>0</price><sms><content><![CDATA[This is a test æøå ÆØÅ]]></content></sms></gate> to a SMS gateway service. The service listens for HTTP ...

Forcing browser to use "Save As ..." dialog box

I would like a "Save As ..." dialog box to appear when a user clicks on a hyperlink. I'm currently sending the HTTP headers: application/octet-stream Content-Disposition: inline;filename=something.doc Apparently IE users are seeing the page render inline as garbled ascii. What is the best way to force a "Save As ..." dialog box to pop...

full-duplex TCP/IP stream socket connection vs PollingDuplexHttpBinding vs WSDualHttpBinding

full-duplex TCP/IP stream socket connection vs PollingDuplexHttpBinding vs WSDualHttpBinding I want to know - What is same What is different Some comparing tables Some articles Where what can\cannot be used etc. ...

Track http domain referer

Can i track the http referer with javascript, and append a variable to the URL string to store into a dbase? or could i track a cookie that the user gets? (very layman's terms here, sorry) if http referrer is domain.com add to url '&referer=google' which should stay with them during their session. OR when a user clicks my Googl...

HTTP status code 200 (cache) vs status code 304?

I'm using the Google "Page Speed" plug-in for Firefox to access my web site. Some of the components on my page is indicated as HTTP status: 200 200 (cache) 304 By Google's "Page Speed". What I'm confused about is the difference between 200 (cache) and 304. I've refreshed the page multiple times (but have not cleared my cache) and it...

[HTML/Firefox]: When website opens, Firefox asks to download the page.

My website is working fine on IE, but when I open it on Firefox, Firefox asks to download the same page and opens the Download File dialog. This problem occurs sometimes in Safari also. For example, if I type in the URL as: http://www.example.com/news.html Firefox opens a dialog to download "news.html". Whereas, it works fine in IE. W...

Accessing POST params with same name in python

I need to get values of these check boxes with same name through HTTP "POST". <input type="checkbox" id="dde" name="dept[]" value="dde"/> <input type="checkbox" id="dre" name="dept[]" value="dre"/> <input type="checkbox" id="iid" name="dept[]" value="iid"/> How to get these values in python using self.request.get() method? ...

HTTP, 408 Request timeout

Hi I have an application, written in C++ This app dispatches a certan info to a script located on a remote website using HTTP POST requests. The app send requests with a period from several seconds to several minutes. The problem is that after about a half an hour of working without errors, the app starts to get 408 Request timout erro...

netsh htpp add urlacl : add reservation for a group

This article explain how to configure a namespace reservation for a user using netsh.exe as follows: netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user The parameter user= is said to be either user or user-group. It works as described when I configure for a single user, but if I replace DOMAN\user with DOMAIN\Administra...

IE accept headers changing, why?

I am trying to debug an issue on my server side and I believe it has to do with the accept headers that are being sent from the browser. Here is my question, why would Internet Explorer change "accept" headers from one page to another page? Can I change the request headers from javascript? Here is a request from one page: Accept: ima...

Checking for Updates on an RSS Feed without downloading the entire XML File

I want to check for updates on a RSS feed. Is there any way to do it without downloading the complete XML? (want to minimize data transfer...) Thanks ...

Http Passthrough Pluggable Protocol for Firefox.

How can I make an http passthrough pluggable protocol for IE work in Firefox? Alternatively, how to develop one for Firefox? Any examples would be appreciated. Thanks. ...

How do I stop reading from a socket if the HTTP response doesn't have a Content-Length header?

The following code snippet reads HTTP response. Say the response doesn't contain a Content-Length header and the Content-Type is not text/html, how would one terminate the while loop? (1. Don't worry about chunked transfer encoding 2. No IO::Socket) while(defined($line = <SOCK>)) { $data .= $line; if($line =~ /Conte...

How to upload huge files from Nokia 95 to webserver?

I'm trying to upload a huge file from my Nokia N95 mobile to my webserver using Pys60 python code. However the code crashes because I'm trying to load the file into memory and trying to post to a HTTP url. Any idea how to upload huge files > 120 MB to webserver using Pys60. Following is the code I use to send the HTTP request. f = ...

HTTP MODIFY verb for REST ?

As far as I see, there's no RESTful way to apply a modification to a resource. In order to do it, you have to PUT the resource as a whole, overwriting the previous representation. I think this is source of problems, in particular when the resource has a large representation. I believe this hints at the lack of a verb in HTTP1.1 : somet...

Modify all HTTP traffic on an OS X

Imagine an application that while running injects a "Hello world" message on every web page you visit. How do I monitor and modify all HTTP traffic happening on an OS X machine? Monitoring and modifying all browser traffic would be good enough as well. Solution can be language agnostic; Python would be awesome. ...

Firefox plugin that intercepts certain HTTP requests

Is there a way to make a Firefox plugin intercept certain requests and respond to them without hitting the network? Example: every time the browser is about to request http://www.example.com/page.html, the plugin automatically returns "Hello world!" for that page. Cheers! ...