News for hackers. Stuff that matters.
Re:Jobseekers Invited to “Apply Via API” by mkopinsky on Friday February 03, 2012 @12:13AM (#3545882)
Curl?? Real men use Telnet...
Re:Jobseekers Invited to “Apply Via API” by nitrogen on Friday February 03, 2012 @02:26AM (#3546209)
Telnet is not the best thing to use when talking to non-telnet servers since it's not a raw protocol that just passes data back and forth. For example, telnet appends an ASCII NUL to any CR in the stream. Netcat gives a truly raw socket.
Re:Jobseekers Invited to “Apply Via API” by mkopinsky on Tuesday February 07, 2012 @12:20AM (#3560564)
Thanks, good to know.
Re:Jobseekers Invited to “Apply Via API” by user24 on Friday February 03, 2012 @05:10AM (#3546563)
compare:

    $ telnet www.example.com 80
    Trying 192.0.43.10...
    Connected to www.example.com.
    Escape character is '^]'.
    GET / HTTP/1.1
    Host: www.example.com
    
    HTTP/1.0 302 Found
    Location: http://www.iana.org/domains/example/
    Server: BigIP
    Connection: Keep-Alive
    Content-Length: 0

    ^]
    telnet> quit
    Connection closed.
    $
with:

    $ curl -i www.example.com
    HTTP/1.0 302 Found
    Location: http://www.iana.org/domains/example/
    Server: BigIP
    Connection: Keep-Alive
    Content-Length: 0

    $
- Real men type less and do more.
Re:Jobseekers Invited to “Apply Via API” by mkopinsky on Tuesday February 07, 2012 @12:11AM (#3560547)
Of course. Abstraction is important and powerful, and the right tool for the right job etc etc. But that still means there's a certain thrill in submitting HTTP POSTs via magnetized needle.