When submitting a particular form with netscape, I get a large number of
results, but when submitting what I *think* is the same form with LWP, I
get no results (the request succeeds, but the web server says "You must
specify some information to search on.").
The form is the "Search for Jobs" thing at the bottom of
http://www.BrilliantPeople.com/jobsearch.asp
I can
with netscape select Information Technology, and leave the
keyword field blank (I have javascript disabled, so it doesn't complain
about this), and press the "Go ->" submit button. This works.
But when I try to recreate the request with LWP:
sub searchreq($) {
my $page = 0 + shift;
return HTTP::Request->new(POST =>
"http://www.BrilliantPeople.com/jobsearch.asp",
undef,
# Search for Information Technologies stuff.
"hdnOccupationSelectionCodes=".join(",",5118..5137)
."&txtKeywords="
#."&numberperpage=100".
#."¤tpage=" . $page
);
}
I get: "You must specify some information to search on."
Any suggestions? The more I pound my head on this problem, the less
like a BrilliantPerson I feel.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.