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?
...
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 should i use these?
...
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 ...
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
I want to know -
What is same
What is different
Some comparing tables
Some articles
Where what can\cannot be used
etc.
...
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...
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...
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...
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?
...
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...
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...
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...
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
...
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.
...
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...
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 = ...
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...
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.
...
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!
...