John Von Essen on 29 Jan 2019 10:07:23 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] raw GET requests |
Well, in Perl you can use the libwww modules (LWP), in bash you’d have to just use command line tools like curl or wget and then redirect output into whatever code logic your doing. I would manually do the request in curl by hand first, i.e. # curl http://domain.com/query.cgi\?q=abc123 to make sure you get HTML output (you have to backslash special chars like ?). The other option is to telnet to the host on port 80 and type: GET / Then hit enter and see what output you get. If that hangs, then yes, something is wrong with the server. Some sites restrict manual GET requests, like Google, so its possible a manual GET from command line may sort of fail by design, but you will at least get HTML output giving the error. -John
|
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug