Sponsored Content
Full Discussion: Test an url
Top Forums Shell Programming and Scripting Test an url Post 58229 by Olivier on Tuesday 16th of November 2004 09:30:36 AM
Old 11-16-2004
Test an url

Hy all,

(sorry in advance for my bad english)


i have a problem with a web application who seems to "freeze", and i want to make a little unix script for checking the application.

Does anyone know a command to test an url ??? the application is on a server where i can not install anything.

Thanks in advance,

Olivier
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

2. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

3. UNIX for Dummies Questions & Answers

ReDirecting a URL to another URL - Linux

Hello, I need to redirect an existing URL, how can i do that? There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this? This is on Unix boxes Linux. example: https://m45.testing.address.net/host.php make it so the... (3 Replies)
Discussion started by: SkySmart
3 Replies

4. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

5. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

6. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST The call goes out to http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena The ID in the middle is always random due to the cookie. I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies

7. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

8. Shell Programming and Scripting

Hit multiple URL from a text file and store result in other test file

Hi, I have a problem where i have to hit multiple URL that are stored in a text file (input.txt) and save their output in different text file (output.txt) somewhat like : cat input.txt http://192.168.21.20:8080/PPUPS/international?NUmber=917875446856... (3 Replies)
Discussion started by: mukulverma2408
3 Replies

9. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies

10. Shell Programming and Scripting

Test the URL

Hi, As part of the requirement I need to test the one URL and whenever any click will happened on the URL it will display the message "Yes Site Looks Good " and need to capture the message and send status to email and if "Yes" will not available then need to send email with "No Site is not... (1 Reply)
Discussion started by: siva83
1 Replies
Test::HTTP::Server::Simple::StashWarnings(3pm)		User Contributed Perl Documentation	    Test::HTTP::Server::Simple::StashWarnings(3pm)

NAME
Test::HTTP::Server::Simple::StashWarnings - catch your forked server's warnings SYNOPSIS
package My::Webserver::Test; use base qw/Test::HTTP::Server::Simple::StashWarnings My::Webserver/; sub test_warning_path { "/__test_warnings" } package main; use Test::More tests => 42; my $s = My::WebServer::Test->new; my $url_root = $s->started_ok("start up my web server"); my $mech = WWW::Mechanize->new; $mech->get("$url_root/some_action"); $mech->get("/__test_warnings"); my @warnings = My::WebServer::Test->decode_warnings($mech->content); is(@warnings, 0, "some_action gave no warnings"); DESCRIPTION
Warnings are an important part of any application. Your web application should warn the user when something is amiss. Almost as importantly, we want to be able to test that the web application gracefully copes with bad input, the back button, and all other aspects of the user experience. Unfortunately, tests seldom cover what happens when things go poorly. Are you "sure" that your application checks authorization for that action? Are you "sure" it will tomorrow? This module lets you retrieve the warnings that your forked server throws. That way you can test that your application continues to throw warnings when it makes sense. Catching the warnings also keeps your test output tidy. Finally, you'll be able to see when your application throws new, unexpected warnings. SETUP
The way this module works is it catches warnings and makes them available on a special URL (which must be defined by you in the "test_warning_path" method). You can use "WWW::Mechanize" (or whichever HTTP agent you prefer) to download the warnings. The warnings will be serialized. Use decode_warnings to get the list of warnings seen so far (since last request anyway). Warnings are encoded using Storable by default, but your subclass may override the "encode_warnings" and "decode_warnings" methods. TIPS
Setting the "TEST_VERBOSE" environment variable to a true value will cause warnings to be displayed immediately, even if they would be captured and tested later. AUTHOR
Shawn M Moore, "<sartak at bestpractical.com>" BUGS
Please report any bugs or feature requests to "bug-test-http-server-simple-stashwarnings at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=test-http-server-simple-stashwarnings>. COPYRIGHT &; LICENSE Copyright 2008 Best Practical Solutions. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2009-07-07 Test::HTTP::Server::Simple::StashWarnings(3pm)
All times are GMT -4. The time now is 02:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy