08-06-2003
turning off certain http requests
On a sparc solaris 8 host running sunone webserver 6 I would like to limit the http requests that can be used when port 80 is accessed. We currently have http/1.0 enabled.
For example I would like to remove the http request DELETE.
Regards,
BLP
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am running Solaris 9 and wanted the CDE stopped when my users login. Can this be done by adding something to the .profile? Basically when they login they should be at the command line and have to start the CDE themselves.
Thanks (11 Replies)
Discussion started by: meyersp
11 Replies
2. UNIX for Dummies Questions & Answers
Hi folks,
I am trying to build this GUI application that will perform some http requests to a specific server.
Basically I will use curl to "pretend" that it is a browser a sending an http request from a form.
My http knowledge is very low, and the site is tricky, but I think if I could... (3 Replies)
Discussion started by: fundidor
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Is there any way like in dos to turn the echo off in a script? i have some lines popping up that i dont wish to be viewed when i am unziping a file it brings up the message updating: log.txt (deflated 72%) and extracting: log.txt i dont want these be viewed.
Andy (4 Replies)
Discussion started by: chapmana
4 Replies
4. Solaris
For two straight days someone was running in.ftpd in my server (apparently looking to break in) and when I would do "top" almost every line would read "in.ftpd". I had a unix sysadmin friend of mine shut it down and then start it back up in a day and a half and all seems OK for now.
Here's what I... (1 Reply)
Discussion started by: thomi39
1 Replies
5. Programming
hi
am senthil
am developing a software to send and receive SMS using HTTP connection
first of all am forming a URL and sending that URL to a remote server using my Client Program
i send that url through Socket(using Send() Function)
if i send more than one URL one by one using the same... (0 Replies)
Discussion started by: senkerth
0 Replies
6. Shell Programming and Scripting
hi
am senthil
am developing a software to send and receive SMS using HTTP connection
first of all am forming a URL and sending that URL to a remote server using my Client Program
i send that url through Socket(using Send() Function)
if i send more than one URL one by one using the same... (4 Replies)
Discussion started by: senkerth
4 Replies
7. Shell Programming and Scripting
Hi friends,
A script needs to be created to collect all HTTP GET requests containing a particular string say abcd.gif in the url path along with the IP address of the client that issued the request. The source of this data is the web server logs. Also Each script execution should extract... (4 Replies)
Discussion started by: skumar391
4 Replies
8. SCO
OSR 5.0.7 patched with MP 5
The syslog is flooded with messages:
May 9 13:42:12 asiwc bootpd: IP address not found: 192.168.230.215
May 9 13:42:13 asiwc bootpd: IP address not found: 192.168.230.142
May 9 13:42:50 asiwc bootpd: IP address not found: 192.168.230.202
The system... (4 Replies)
Discussion started by: migurus
4 Replies
9. Web Development
Hypertext Transfer Protocol -- HTTP/1.1 for Reference - HTTP Headers
10 Status Code Definitions
Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response. (1 Reply)
Discussion started by: Neo
1 Replies
10. Shell Programming and Scripting
Hi,
I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log.
Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues... (3 Replies)
Discussion started by: Juha
3 Replies
LEARN ABOUT DEBIAN
mojo::useragent::transactor
Mojo::UserAgent::Transactor(3pm) User Contributed Perl Documentation Mojo::UserAgent::Transactor(3pm)
NAME
Mojo::UserAgent::Transactor - User agent transactor
SYNOPSIS
use Mojo::UserAgent::Transactor;
my $t = Mojo::UserAgent::Transactor->new;
my $tx = $t->tx(GET => 'http://mojolicio.us');
DESCRIPTION
Mojo::UserAgent::Transactor is the transaction building and manipulation framework used by Mojo::UserAgent.
METHODS
Mojo::UserAgent::Transactor inherits all methods from Mojo::Base and implements the following new ones.
"endpoint"
my ($scheme, $host, $port) = $t->endpoint($tx);
Actual endpoint for transaction.
"form"
my $tx = $t->form('kraih.com' => {a => 'b'});
my $tx = $t->form('http://kraih.com' => {a => 'b'});
my $tx = $t->form('http://kraih.com' => {a => [qw(b c d)]});
my $tx = $t->form('http://kraih.com' => {mytext => {file => '/foo.txt'}});
my $tx = $t->form('http://kraih.com' => {mytext => {content => 'lalala'}});
my $tx = $t->form('http://kraih.com' => {
myzip => {
file => Mojo::Asset::Memory->new->add_chunk('lalala'),
filename => 'foo.zip',
DNT => 1
}
});
my $tx = $t->form('http://kraih.com' => 'UTF-8' => {a => 'b'});
my $tx = $t->form('http://kraih.com' => {a => 'b'} => {DNT => 1});
my $tx = $t->form('http://kraih.com', 'UTF-8', {a => 'b'}, {DNT => 1});
Versatile Mojo::Transaction::HTTP builder for "POST" requests with form data.
# Inspect generated request
say $t->form('mojolicio.us' => {a => [1, 2, 3]})->req->to_string;
# Streaming multipart file upload
my $tx = $t->form('mojolicio.us' => {fun => {file => '/etc/passwd'}});
While the "multipart/form-data" content type will be automatically used instead of "application/x-www-form-urlencoded" when necessary, you
can also enforce it by setting the header manually.
# Force multipart
my $tx = $t->form(
'http://kraih.com/foo',
{a => 'b'},
{'Content-Type' => 'multipart/form-data'}
);
"peer"
my ($scheme, $host, $port) = $t->peer($tx);
Actual peer for transaction.
"proxy_connect"
my $tx = $t->proxy_connect($old);
Build Mojo::Transaction::HTTP proxy connect request for transaction if possible.
"redirect"
my $tx = $t->redirect($old);
Build Mojo::Transaction::HTTP followup request for 301, 302, 303, 307 or 308 redirect response if possible.
"tx"
my $tx = $t->tx(GET => 'kraih.com');
my $tx = $t->tx(POST => 'http://kraih.com');
my $tx = $t->tx(GET => 'http://kraih.com' => {DNT => 1});
my $tx = $t->tx(PUT => 'http://kraih.com' => 'Hi!');
my $tx = $t->tx(POST => 'http://kraih.com' => {DNT => 1} => 'Hi!');
Versatile general purpose Mojo::Transaction::HTTP builder for requests.
# Inspect generated request
say $t->tx(GET => 'mojolicio.us' => {DNT => 1} => 'Bye!')->req->to_string;
# Streaming response
my $tx = $t->tx(GET => 'http://mojolicio.us');
$tx->res->body(sub { say $_[1] });
# Custom socket
my $tx = $t->tx(GET => 'http://mojolicio.us');
$tx->connection($sock);
"websocket"
my $tx = $t->websocket('ws://localhost:3000');
my $tx = $t->websocket('ws://localhost:3000' => {DNT => 1});
Versatile Mojo::Transaction::WebSocket builder for WebSocket handshake requests.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::UserAgent::Transactor(3pm)