http

What Firefox extension can dump HTTP responses?

I'm familiar with LiveHTTPHeaders and TamperData which can show what is going to be sent to the web server. However, I also want to study the server responses. How can I do this? ...

How to avoid sending input fields which are hidden by display:none to a server?

Hi! Imagine you have a form where you switch visibility of several fields. And if the field is not displayed you don't want its value to be in request. How do you handle this situation? ...

How to ensure SWF is cached by the browser the first time it is downloaded when serving via HTTP and Mongrel cluster?

We have a Rails app that instantiates a SWF object 16 times (it has to do this, it's just the nature of the application). Instead of being downloaded once, it is being downloaded 16 times. How can we ensure this SWF is cached by the browser the first time it is downloaded? It's being served directly from Apache - can we modify the HTTP...

Fails to load remote files from web, but not CLI

I can load a remote file (http) from the php CLI: php > print_r(getimagesize("http://www.google.ca/intl/en_ca/images/logo.gif")); Array ( [0] => 276 [1] => 110 [2] => 1 [3] => width="276" height="110" [bits] => 8 [channels] => 3 [mime] => image/gif ) However, the exact same code from a web script gives ...

Http get request packet size in bytes

How many bytes of data does a typical HTTP get request consume. For instance if I request a page from the server through a browser how many bytes of data would be sent? ...

How can I make a multipart/form-data POST request using Java?

In the days of version 3.x of Apache Commons HttpClient, making a multipart/form-data POST request was possible (an example from 2004). Unfortunately this is no longer possible in version 4.0 of HttpClient. For our core activity "HTTP", multipart is somewhat out of scope. We'd love to use multipart code maintained by some other...

WCF and HTTP GET

My WCF service exposes this function public SerialNumberInfo GetSerialNumberInfo(string serialNumber) { } Is there a way to enable HTTP GET on my WCF service? Example: http://localhost:8004/MyService/GetSerialNumberInfo?serialNumber=4 ...

passing authentication info in html form

hie i have a html form and while posting a request to a url i also want to pass crendtials using basic-auth can anybody please share a code example on how to do that? ...

IPhone - Get file last modified date from web server

I want to check the last modified date on a file on a web server. Any help would be great. Thanks. ...

Help with Warning: Cannot modify header information - headers already sent by (output started at C:\## errors

the db_connect file: <?php //connects to the database $username = "username"; $password = "password"; $hostname = "host"; $database="database"; $link=mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL".mysql_error()); mysql_select_db($database, $link) or die("Could not select the da...

Compacting Http Headers

Its so happening that my actual data is 1/4 that of the HTTP request header size in bytes. Is there a way to cut down on the size on the HTTP headers or any other relevant way to deal with this situation? I am sending data from a mobile device over GPRS to the server and dont want to be burdened with huge request packets that will eat i...

What could cause the HTTP If-Modified-Since header to contain two comma separated dates?

Hi, I have a site behind IIS and Enfold Proxy (a reverse proxy filter for IIS), served from Plone (a CMS) via a WSGI stack. Users use IE7. Somehow, requests are reaching the server with an If-Modified-Since header like this: Thu, 27 Aug 2009 06:46:31 GMT,Thu, 27 Aug 2009 06:46:31 As you can see, there are two dates here (one with a t...

Doing an embedded HTTP server with Comet

I love the idea of Grizzly, but I can't find any good examples to work with. Well, any good tutorial... I want to have an embedded HTTP server that I can talk to from Dojo. I don't want a J2EE server and I want to use Java. What do you folks think? ...

My domain is masked forwarding to another domain, can they see where my URL referrals are coming from?

My domain is masked forwarding to another domain, can they see where my URL referrals are coming from? Meaning, my domain is advertised for certain Google keywords. Will they be able to see this? I think it is not possible and masked forwarding is like redirecting. They can see that my referral URL is mydomain.com, and not google.com. ...

Can can I encode spaces as %20 in a POST from WWW::Mechanize?

I'm using WWW::Mechanize to do some standard website traversal, but at one point I have to construct a special POST request and send it off. All this requires session cookies. In the POST request I'm making, spaces are being encoded to + symbols, but I need them encoded as a %20. I can't figure out how to alter this behaviour. I realis...

Is it possible to "multiplex" many AJAX requests from the same page?

I have a page that already makes multiple AJAX requests at the same time. They use the Comet model, so there are always multiple HTTP connections open, waiting for more data from the server. As the page gets more complex in the future there may be even more. I'm concerned about opening too many connections. I wonder if there is a way to...

how to make WCF webHttp behaviour accept HEAD verbs?

I have a WCF service hosted in a Windows service. I've added to it a webHttpBinding with a webHttp behaviour and whenever I send it a GET request I get http 200 which is what I want, problem is I get an http 405 whenever I send it a HEAD request. Is there a way to make it return http 200 also for HEAD? Is that even possible? edit: that...

How can I configure HTTPClient to authenticate against a SOCKS proxy?

I need to set up proxy authentication against a SOCKS proxy. I found out this post giving instructions that appear to work with common HTTP proxies. httpclient.getHostConfiguration().setProxy("proxyserver.example.com", 8080); HttpState state = new HttpState(); state.setProxyCredentials(new AuthScope("proxyserver...

If POST to an URL and how can I tell the client to look at a fragment of the response?

I would like to POST an entity as follows POST /example.org/MyEntity/100 Based on the passed entity, the server would like to draw the users attention to a particular part of the response using a fragment identifier. e.g. /example.org/MyEntity/100#InterestingPart How do I return this new URL to the client. I am assuming I could do...

HTTP parsing library for linux C++

can anyone suggest a good HTTP parsing library for linux? ...