Sponsored Content
Full Discussion: Query IP in senderbase.org
Top Forums Shell Programming and Scripting Query IP in senderbase.org Post 302807059 by Kochappa on Tuesday 14th of May 2013 05:36:59 AM
Old 05-14-2013
Linux Query IP for reputation check

Hello,

I am looking for a script which can do the following

* Goto
Code:
senderbase.org/lookup

and search the IP and get the results

We can run the query directly from
Code:
www.senderbase.org/lookup?search_string=test.com  for eg:

However the problem is when it is run from the cmd, it asks to accept Terms of service and we would need to click "Yes, I Agree" before we proceed.

* Once the query is run, it should click on "Export" link with only "IP Address" and "Email Reputation" check boxes checked and click on Export to download the file to a location.

I would like to get this done using curl/wget. Can someone advise/help me please?

Kind Regards,
Kochappa.

Last edited by Kochappa; 05-14-2013 at 06:59 AM..
 

7 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

X.Org and XFree86

X.Org just released a new version of their X (X11R6.7). Besides Liscense stuff, what is better about X.org then XFree? What is better about XFree then X.org? Also: Will my fglrx (ATI) or nvidia drivers (designed for XFree86 4.3) work on X.org? (2 Replies)
Discussion started by: punkrockguy318
2 Replies

2. Solaris

ayna org

İntel Script v5 Çok Yakında ..code/menu* (2 Replies)
Discussion started by: ilkerkarakoc
2 Replies

3. UNIX for Dummies Questions & Answers

X.org FreeBSD 5.3

Hi! I have some problems with my X.org. The xdm starts without any problems and so does the wm. I'm using enlightenment and fluxbox. But when I start for example xterm it runs for a while and then the screen freeze. The computer is still running you can ssh to it and the mousecursor is moving.... (4 Replies)
Discussion started by: Barfly.se
4 Replies

4. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

5. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

6. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

7. What is on Your Mind?

Org Charts

Funny org charts for Apple, Google, Microsoft, Oracle, Amazon and Facebook. https://www.unix.com/picture.php?albumid=112&pictureid=613 (0 Replies)
Discussion started by: Neo
0 Replies
Test::WWW::Declare(3pm) 				User Contributed Perl Documentation				   Test::WWW::Declare(3pm)

NAME
Test::WWW::Declare - declarative testing for your web app SYNOPSIS
use Test::WWW::Declare tests => 3; use Your::Web::App::Test; Your::Web::App::Test->start_server; session 'testuser' => run { flow 'log in and out' => check { flow 'log in' => check { get 'http://localhost/'; fill form 'login' => { username => 'testuser', password => 'drowssap', }; content should contain 'log out'; }; flow 'log out' => check { get 'http://localhost/'; click href 'log out'; }; }; }; DESCRIPTION
Often in web apps, tests are very dependent on the state set up by previous tests. If one test fails (e.g. "follow the link to the admin page") then it's likely there will be many more failures. This module aims to alleviate this problem, as well as provide a nicer interface to Test::WWW::Mechanize. The central idea is that of "flow". Each flow is a sequence of commands ("fill in this form") and assertions ("content should contain 'testuser'"). If any of these commands or assertions fail then the flow is aborted. Only that one failure is reported to the test harness and user. Flows may also contain other flows. If an inner flow fails, then the outer flow fails as well. FLOWS AND SESSIONS
session NAME => run { CODE } Sessions are a way of associating a set of flows with a WWW::Mechanize instance. A session is mostly equivalent with a user interacting with your web app. Within a session, every command ("get", "click link", etc) is operating on that session's WWW::Mechanize instance. You may have multiple sessions in one test file. Two sessions with the same name are in fact the same session. This lets you write code like the following, simplified slightly: session 'first user' => run { get "$URL/give?task=1&victim=other"; session 'other user' => run { get "$URL/tasks"; content should match qr/task 1/; # this is the same session/mech as the outermost 'first user' session 'first user' => run { get "$URL/tasks"; content shouldnt match qr/task 1/; }; }; }; flow NAME => check { CODE } A flow encompasses a single test. As described above, each flow is a sequence of commands, assertions, and other flows. If any of the components of a flow fail, the rest of the flow is aborted and one or more test failures are reported to the test harness. COMMANDS
get URL click button click href follow_link fill form NAME => {FIELD1 => VALUE1, FIELD2 => VALUE2} ASSERTIONS
Every assertion has two parts: a subject and a verb. SUBJECTS content title url VERBS should(nt) (caselessly) match REGEX should(nt) (caselessly) contain STRING should(nt) (caselessly) lack STRING should(nt) (caselessly) equal STRING SUBCLASSING
One of the goals of this module is to let you subclass it to provide extra features, such as automatically logging in a user each time a session is created. CAVEATS
If you fail any tests, then the actual number of tests run may be fewer than you have in your file. This is because when a flow fails, it immediately aborts the rest of its body (which may include other flows). So if you're setting the number of tests based on how many ran, make sure that all tests passed. BUGS
Hopefully few. We'd like to know about any of them. Please report them to "bug-test-www-declare@rt.cpan.org". SEE ALSO
Test::WWW::Mechanize, Jifty. MAINTAINER
Shawn M Moore "<sartak@bestpractical.com>" ORIGINAL AUTHOR
Jesse Vincent "<jesse@bestpractical.com>" COPYRIGHT
Copyright 2007-2008 Best Practical Solutions, LLC This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2008-10-12 Test::WWW::Declare(3pm)
All times are GMT -4. The time now is 02:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy