view release on metacpan or search on metacpan
lib/Apache2/AutoIndex/XSLT.pm view on Meta::CPAN
=head2 AddAltByType
AddAltByType 'plain text' text/plain
I<AddAltByType> sets the alternate text to display for a file, instead of an
icon. MIME-type is a valid content-type, such as
text/html. If String contains any whitespace, you have to enclose it in quotes
(" or '). This alternate text is displayed if the client is image-incapable,
has image loading disabled, or fails to retrieve the icon.
=head2 AddDescription
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/ClickPath/Store.pm view on Meta::CPAN
=back
Normally the store answers a request with HTTP status code 200 (OK). In case
of a read operation the response body contains just the data item. The HTTP
content-type is set to C<application/octet-stream>. In case of a write
operation the string C<ok> is returned with the content-type set to
C<text/plain>.
If something went wrong it is indicated by the HTTP status code. The store
returns the following codes:
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/CondProxy.pm view on Meta::CPAN
else {
my $uri = $r->unparsed_uri;
$r->log->debug("Attempting lookup on $uri");
my $subr = _make_subreq($r, $uri);
# set the content-type and content-length in the subrequest
my $ct = $r->headers_in->get('Content-Type');
$subr->headers_in->set('Content-Type', $ct) if $ct;
my $cl = $r->headers_in->get('Content-Length');
$subr->headers_in->set('Content-Length', $cl) if $cl;
lib/Apache2/CondProxy.pm view on Meta::CPAN
$uri = $r->unparsed_uri unless defined $uri;
my $subr = $r->lookup_method_uri($r->method, $uri);
# set the content-type and content-length in the subrequest
my $ct = $r->headers_in->get('Content-Type');
$subr->headers_in->set('Content-Type', $ct) if $ct;
my $cl = $r->headers_in->get('Content-Length');
$subr->headers_in->set('Content-Length', $cl) if $cl;
view all matches for this distribution
view release on metacpan or search on metacpan
t/Apache2-Dummy-RequestRec.t view on Meta::CPAN
ok($r->content_languages eq 'EN', "content-languages() == 'EN'");
$tno++;
$r->content_type("text/html");
ok($r->content_type eq 'text/html', "content-type('text/html') == 'text/html'");
$tno++;
my $headers_out =
{
'Content-Language' => "EN",
view all matches for this distribution
view release on metacpan or search on metacpan
t/MY/PlainHandler.pm
t/MY/UpperCase.pm
t/TEST.PL
t/conf/extra.conf.in
t/content-length.t
t/content-type.t
t/decline.t
t/dynamic.t
t/htdocs/minified-xs.txt
t/htdocs/minified.txt
t/htdocs/test.css
view all matches for this distribution
view release on metacpan or search on metacpan
t/MY/PlainHandler.pm
t/MY/UpperCase.pm
t/TEST.PL
t/conf/extra.conf.in
t/content-length.t
t/content-type.t
t/decline.t
t/dynamic.t
t/htdocs/minified-xs.txt
t/htdocs/minified.txt
t/htdocs/test.js
view all matches for this distribution
view release on metacpan or search on metacpan
t/10-headers.t view on Meta::CPAN
END
[ 'text/html; charset=ISO-8859-1',
[ 'New-Header' => 'header 1' ],
[ 'New-Header' => 'header 2' ] ]);
test('http-equiv content-type', {}, <<'END',
<html><head>
<meta http-equiv="New-Header" content="header 1">
<meta content="header 2" http-equiv="New-Header">
<meta http-equiv="Content-Type" content="text/html; charset='Windows-1252'">
</head><body></body></html>
view all matches for this distribution
view release on metacpan or search on metacpan
ModProxyPerlHtml.pm view on Meta::CPAN
know about the content type, with FireFox simply type Ctrl+i on the web page.
Some MS Office files may conflict with the above ProxyHTMLContentType regex like .docx or .xlsx
files. The result is that there could suffer of replacement inside and the file will be corrupted.
to prevent this you have the ProxyHTMLExcludeContentType configuration directive to exclude certain
content-type. Here is the default value:
PerlAddVar ProxyHTMLExcludeContentType (application\/vnd\.openxml)
If you have problem with other content-type, use this directive. For example, as follow:
PerlAddVar ProxyHTMLExcludeContentType (application\/vnd\.openxml|application\/vnd\..*text)
this regex will prevent any MS Office XML or text document to be parsed.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/Mojo.pm view on Meta::CPAN
my $headers = $res->headers;
foreach my $key (@{$headers->names}) {
my @value = $headers->header($key);
next unless @value;
# special treatment for content-type
if ($key eq 'Content-Type') {
$r->content_type($value[0]);
} else {
$r->headers_out->set($key => shift @value);
$r->headers_out->add($key => $_) foreach (@value);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/POST200.pm view on Meta::CPAN
$r->err_headers_out->clear;
foreach my $line (split /\n/, $l->[1]) {
$r->err_headers_out->add(split /: /, $line, 2)
if( length $line );
}
} elsif( $i==3 ) { # content-type
$r->content_type($l->[1]);
} else { # data
$r->print( $l->[1] );
}
} else {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/PageKit.pm view on Meta::CPAN
$quality[$pos] =~ /^q=(\d+(?:\.\d+)?)/;
push @charsets, [ $_, $1 || '0.1', $pos++ ];
}
@charsets = sort {$b->[1] <=> $a->[1] || $a->[2] <=> $b->[2] } @charsets;
# set a content-type perhaps we overwrite this later if we know about the charset for the output pages
}
} elsif ($output_media eq 'application/pdf'){
my $fop_command = $config->get_server_attr('fop_command')
|| $config->get_global_attr('fop_command');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/PodBrowser.pm view on Meta::CPAN
}
$path.=substr $pi, $pos;
update_finfo $r, $path;
if( $r->finfo->filetype==APR::Const::FILETYPE_REG ) {
if( $r->args=~/\bct=([^;&]+)/ ) {
# content-type given as URL parameter
my $ct=$1;
$ct=~s/%([0-9a-f]{2})|\+/defined $1
? pack('H2', $1)
: ' '/egi;
$r->content_type($ct);
view all matches for this distribution
view release on metacpan or search on metacpan
extra/progress.js view on Meta::CPAN
if (hdrName != null) {
this._headers[this._headers.length] = {h:hdrName, v:hdrValue};
switch (hdrName.toLowerCase()) {
case 'content-encoding': gotContentEncoding = true; break;
case 'content-length' : gotContentLength = true; break;
case 'content-type' : gotContentType = true; break;
case 'date' : gotDate = true; break;
case 'expires' : gotExpiration = true; break;
case 'last-modified' : gotLastModified = true; break;
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make
-t timelimit Seconds to max. wait for responses (may be fractional)
-p postfile File containg data to POST
-T content-type Content-type header for POSTing
-i Use HEAD instead of GET
-C attribute Add cookie, eg. 'Apache=1234'
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: zop'
Inserted after all normal header lines.
(separate multiple headers with "\\r\\n")
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/AutoCRUD.pm view on Meta::CPAN
- internationalisation
-
- View:
- default view should be defined in config
- overridable content-type & headers
- search form, show associations => link to join search
- list foreign keys even if not in DBIDM schema
view all matches for this distribution
view release on metacpan or search on metacpan
public/javascripts/jquery.js view on Meta::CPAN
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&...
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);r...
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._...
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var ...
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f)...
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){...
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n===...
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","padd...
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;f...
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments)...
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.repl...
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Bernard/Filetype/TextXGettextTranslation.pm view on Meta::CPAN
if ($item->{'type'} eq 'header') {
$item->{'headers'}->{'language-team'} =
'Shavian <ubuntu-l10n-en-shaw@launchpad.net>';
$item->{'headers'}->{'content-type'} =
'text/plain; charset=UTF-8';
$item->{'headers'}->{'plural-forms'} =
'nplurals=2; plural=n!=1;';
$settings->{'defines'} = {
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/App/CamelPKI/Test.pm view on Meta::CPAN
my $res = http_request_execute($req, @args);
die sprintf("plain request at $url failed with code %d\n%s\n",
$res->code, $res->content)
unless $res->is_success;
die sprintf("plain request at $url returned a %s document\n%s\n",
$res->header("content-type"), $res->content)
unless $res->header("content-type") =~ m|^text/plain|;
return $res->content;
}
=item I<jsoncall_local ($uri, $struct)>
view all matches for this distribution
view release on metacpan or search on metacpan
themes/bs2/static/js/jquery-1.7.1.min.js view on Meta::CPAN
/*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("ifram...
f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){ret...
{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this...
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Dapper.pm view on Meta::CPAN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>{{ page.title }}</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
{{ page.content }}
lib/App/Dapper.pm view on Meta::CPAN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Welcome</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Hello world.</p>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/DocKnot/Spin/Text.pm view on Meta::CPAN
if ($self->{style}) {
$self->_output(q{ }, style($self->{style}), "\n");
}
$self->_output(
q{ },
'<meta http-equiv="content-type" content="text/html; charset=utf-8"',
" />\n",
);
if ($self->{sitemap}) {
if (defined($self->{output}) && defined($self->{out_path})) {
my $page = $self->{out_path}->relative($self->{output});
view all matches for this distribution
view release on metacpan or search on metacpan
config/CLI_Config.pm view on Meta::CPAN
set( 'DOCHAZKA_CLI_LOG_FILE', "$ENV{HOME}/.dochazka-cli.log" );
# MREST_CLI_SUPPRESSED_HEADERS
# list of headers to be suppressed in the output
set ('MREST_CLI_SUPPRESSED_HEADERS', [ qw(
accept content-type content-length cache-control pragma expires
server Client-Response-Num Client-Peer Client-Date Set-Cookie Date
Vary Client-SSL-Cert-Subject Client-SSL-Cipher
Client-SSL-Socket-Class Client-SSL-Cert-Issuer Connection
Strict-Transport-Security
) ] );
view all matches for this distribution
view release on metacpan or search on metacpan
config/Component_Config.pm view on Meta::CPAN
</%class>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Dochazka Site Param</title>
</head>
<body>
<pre>
$site_param_name = '<% $.param %>';
config/Component_Config.pm view on Meta::CPAN
</%class>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Dochazka Monthly Report</title>
</head>
<body>
<pre>
<% Data::Dumper->Dump( [ $.employee ], [ 'employee' ] ) %>
view all matches for this distribution
view release on metacpan or search on metacpan
Change: 1cebbe9c0f5d0a16e8fae982b87f819184059423
Author: Zaahir Moolla <moollaza@fastmail.fm>
Date : 2015-11-26 14:40:34 +0000
Merge pull request #285 from duckduckgo/john/content-type-encoding
Set charset in Content-Type response header in duckpan publisher
Change: 8d4c50460638f3d687c0dccce0dee6c56839626e
Author: John Barrett <john@jbrt.org>
view all matches for this distribution
view release on metacpan or search on metacpan
bin/eventstreamr-devmon.pl view on Meta::CPAN
# Trigger restart
my $device->{id} = "0x$guid";
my $json = to_json($device);
my %post_data = (
content => $json,
'content-type' => 'application/json',
'content-length' => length($json),
);
my $http = HTTP::Tiny->new(timeout => 15);
my $post = $http->post("http://localhost:3000/command/restart", \%post_data);
view all matches for this distribution
view release on metacpan or search on metacpan
share/static/jquery-1.4.2.js view on Meta::CPAN
// Opera returns 0 when status is 304
return xhr.status === 304 || xhr.status === 0;
},
httpData: function( xhr, type, s ) {
var ct = xhr.getResponseHeader("content-type") || "",
xml = type === "xml" || !type && ct.indexOf("xml") >= 0,
data = xml ? xhr.responseXML : xhr.responseText;
if ( xml && data.documentElement.nodeName === "parsererror" ) {
jQuery.error( "parsererror" );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/MFILE/WWW/Resource.pm view on Meta::CPAN
return 1 if $self->request->method eq 'GET';
# some requests may not specify a Content-Type at all
return 0 if not defined $content_type;
# unfortunately, Web::Machine sometimes sends the content-type
# as a plain string, and other times as an
# HTTP::Headers::ActionPack::MediaType object
if ( ref( $content_type ) eq '' ) {
return ( $content_type =~ m/application\/json/ ) ? 1 : 0;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Mimosa/Controller/JSON.pm view on Meta::CPAN
__PACKAGE__->config(
default => 'application/json',
stash_key => 'rest',
'map' => {
# Work around an ExtJS bug that sends the wrong content-type
'text/html' => 'JSON',
}
);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/MonM/Util.pm view on Meta::CPAN
Getting specified Bit
=item B<header_field_normalize>
print header_field_normalize("content-type"); # Content-Type
Returns normalized header field
=item B<merge>
view all matches for this distribution