No problem. Here is the actual HTML used in the page (I had to pull the other from memory since the website seems to be down ;), and the Perl code:
<FORM METHOD=POST ACTION="http://www.environet.gov.on.ca/dwws-app/DWWS
+App?cmd=UploadSubmPage.uploadSubm" ENCTYPE="multipart/form-data">
<input type="hidden" name="works_id" value="3253245">
<input type="hidden" name="lab_id" value="2435325">
<input type="file" name="filename">
</FORM>
And the Perl code responsible:
$FileName = ("C:\\Scripts\\moe\\swap\\$LotNumber.txt");
my $request = POST ('http://www.environet.gov.on.ca/dwws-app/DWWSApp?c
+md=UploadSubmPage.uploadSubm',
Content_Type=> 'form-data',
Content => [works_id=>'2353245',
lab_id=>'456436',
filename=>[$FileName]]);
The '?' character being escaped sounds like it may be significant. Anyways, hope this helps...
-Tim
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.