Search squid archive

Re: WHOIS queries over squid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, but when a do a request like that to squid, I get an error
stating "invalid request".  I am curious about the header information
to be feed to the proxy.  With an HTTP request I specify something
like this (to get the authentication down):

GET (request_url) HTTP/1.0\r\nHost: (proxy_name)\r\n
Proxy-Authorization: Basic (proxy_user:proxy_pass)\r\n\r\n

Would a whois query be just:

request_url HTTP/1.0\r\nHost: (proxy_name)\r\n
Proxy-Authorization: Basic (proxy_user:proxy_pass)\r\n\r\n?

This, of course gives an error since there is no request type.

On 5/24/06, David Landgren <david@xxxxxxxxxxxx> wrote:
Duncan McQueen wrote:
> Hello,
>
> I am trying to do direct whois queries over squid.  I can do such
> queries as HTTP requests, but was curious as to whether it is possible
> to do th requests directly (to port 43)?  If so, what would be the
> commands to the server.  For example, the http request is "GET
> whois.pl HTTP/1.1 etc", how would he similar command look for a whois
> query?

See RFC 954. WHOIS is a ancient protocol, much easier to understand
than, say, HTTP. A command just looks like

   <whois-name><cr><lf>

then read, read, read till your done.

That's it. Although this RFC is now obsolete (in 2003 IIRC) it's enough
to get an understanding.

David
--
"It's overkill of course, but you can never have too much overkill."




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux