post or get message posting

R

RocketMan

Hi

I have a form I need to post to with perl.The form is too big, but here is
the key. It has no "type', as it's a message box input.
How can I post to it?

Thanks.


<textarea class="ygta post-input-border" rows="10" cols="60"
id="message"name="message" tabindex="3"></textarea>
</label>
</p>
<br/>
</td>
</tr>
<tr>
 
R

RocketMan

Tad J McClellan said:
perldoc -q form

How do I automate an HTML form submission?

Thanks Tad, but three days later, still can't do what I need to.
I used HTML::Form->parse($response); to identify all the form pairs, but one
has no name (<NONAME>) and there are hiden ones.
I used get to grab a .crumb pair, and use Post to submit them all back to
the form 'action' url, but the form still never gets submitted on the
server.
HTTP response is 200, though.

Here is an example of the form I'm trying to submit to.
Go here, and then click "Reply".

http://messages.finance.yahoo.com/S...=tm&bn=9010&tid=452005&mid=452005&tof=2&frt=1

The reply form is the one that won't take a submit.
Note, my goal is not to spam.
Yahoo easily detects spam posting and immediately deletes accounts of those
who spam, and that is not the goal.

I think I exhausted all options on this.
Any clues or points someone may have woud be helpful.

Thanks!
 
R

RocketMan

Gunnar Hjalmarsson said:
The reply form doesn't show up unless you are signed in.

Yes, I am aware of that.
I already deal with signing in first, and the form shows up and is correct
with a get.
Thanks!

This just the form from that page:

<form
action="http://messages.finance.yahoo.com/S...=tm&bn=9010&tid=452005&mid=452005&tof=2&frt=1"
method="post" id="frmPost">

<div class="blue-box" style="background-color: rgb(247, 249, 251);">
<span class="corner-top">
<span class="corner-left"></span>
</span>
<div class="margin-10">
<table width="80%">
<thead>
<tr><th colspan="2" style="text-align: left">
<h1 class="form-title">
Posting on Message Boards</h1>
</th></tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top">
<p>
<div class="space-5"></div>
<h2 class="form-title">
Reply Message
</h2>

<div class="margin-10"></div>
<label accesskey="S">
<h3 class="form-title" style="display:inline;">
Subject:</h3><span id="subject-err" class="element-err-box"></span>
<div class="space-5" style="font-size:3px;height:3px"></div>
<input type="text"
value="Re: buy out" id="subject"
size="35" name="subject" class="post-input-border" tabindex="2"/>
</label>
<div class="space-5"></div>
<label accesskey=="M">
<h3 class="form-title" style="display:inline">
Type message:</h3><span id="message-err"
class="element-err-box"></span>
<div class="space-5" style="font-size:3px;height:3px"></div>
<textarea class="ygta post-input-border" rows="10" cols="60"
id="message"
name="message" tabindex="3"></textarea>
</label>
</p>
<br/>
</td>
</tr>
<tr><td><p> <label accesskey="I">
<h3 class="form-title" style="display:inline;">
Identity:</h3><span id="identity-err" class="element-err-box"></span>
<div class="space-5" style="font-size:3px;height:3px"></div>
<select class="textbox post-input-border" size="1" id="identity"
name="identity" tabindex="1">
<option value="myuserid" selected="true">myuserid</option><option
value="myuserid2">myuserid2</option>
</select>
</label></p></td></tr>
<tr>
<td width="50%">
<br>
<table width="90%" summary="Display
Sentiment Options" border="0" style="width: 55%;">
<tr>
<td colspan="3">
<b>Long-Term Sentiment Disclosure</b> - <small>sentiment
will be displayed along with your message.</small> </br>
</td>
</tr>
<tr>
<td>
<label>
<input type="radio" name="E"
value="5" >&nbsp;Strong Buy
</label>
</td>
<td>
<label>
<input type="radio" name="E"
value="4" >&nbsp;Buy
</label>
</td>
<td>
<label>
<input type="radio" name="E"
value="3" >&nbsp;Hold
</label>
</td>
</tr>
<tr>
<td>
<label>
<input type="radio" name="E"
value="2" >&nbsp;Sell
</label>
</td>
<td>
<label>
<input type="radio" name="E"
value="1" >&nbsp;Strong Sell
</label>
</td>
<td>
<label>
<input type="radio" name="E"
value="0" checked>&nbsp;
Do Not Disclose
</label>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<FONT size="-2">
NOTE: Please read our <A href="http://docs.yahoo.com/info/terms/">
Terms of Service</A>. Messages that harass, abuse or threaten other members;
have obscene or otherwise objectionable content; have spam, commercial or
advertising content or links may be removed and may result in the loss of
your Yahoo! ID (including e-mail). Please do not post any private
information unless you want it to be available publicly.
</FONT>
<P>
<FONT size="-2">
Never assume that you are anonymous and cannot be identified by your posts.
</FONT>
</P>

</td>
</tr>
</table>
</div>
<div class="message-box-action">
<span style="float: right; padding-right: 10px;">
<input type="submit" class="active-button" id="SubmitPreview"
name="SubmitPreview" accesskey="R" tabindex="4" value="Preview Message"/>
&nbsp;
<input type="submit" class="inactive-button" id="SubmitPost"
name="SubmitPost" accesskey="P" tabindex="5" value="Post Message"/>
&nbsp;
<input type="submit" class="inactive-button" id="SubmitCancel"
name="SubmitCancel" accesskey="C" tabindex="6" value="Cancel"/>
<input type="hidden" name=".crumb" value="RcVV..HAwN/" />
<input type="hidden" id="yIdCoreIdUser" value="myuserid" />
<input type="hidden" name="action_btn" />
</span>
</div>
<span class="corner-bottom">
<span class="corner-left"></span>
</span>
</div>
<div class="space-5"></div>
<div class="space-5"></div>
<div class="heading">
<span>
<b>Original Message</b>
</span>
</div>
<div class="space-5"></div>
<div class="blue-box">
<div class="message-box-heading"
style="border-top: none; position: static; top: 0;">
<span class="corner-top"><span class="corner-left"></span></span>
<span style="float: left; padding: 5px 0px 5px 5px;">
<span class="user-data"><B>buy out</B></span>
<span class="no-wrap"><b>Rating :</b><br/><img border="0"
src="http://us.i1.yimg.com/us.yimg.com/i/us/mb/star_g16.gif" alt=""
title=""><img border="0"
src="http://us.i1.yimg.com/us.yimg.com/i/us/mb/star_g16.gif" alt=""
title=""><img border="0"
src="http://us.i1.yimg.com/us.yimg.com/i/us/mb/star_g16.gif" alt=""
title=""><img border="0"
src="http://us.i1.yimg.com/us.yimg.com/i/us/mb/star_g16.gif" alt=""
title=""><img border="0"
src="http://us.i1.yimg.com/us.yimg.com/i/us/mb/star_g16.gif" alt=""
title="">&nbsp;<span class="header-link" style="color:
#8c8c8c;padding-left:0px;vertical-align:text-top;">(No
ratings)</span></span>
</span>
<span class="time no-wrap"
style="float: right; padding: 8px 10px 8px 0px;">
2-Feb-08 09:52 pm
</span>
</div>
<div>
<table>
<tr>
<td id="msgcontents" style="padding: 5px;" valign="top">
<span class="user-data">
<div id="messg-contents">
wait till big blue and emc start the bidding war emc it could nasty

</div>
</span>
</td>
<td id="authorinfo"
style="background: #f7f7f7; padding: 5px;" rowspan="3">
<div id="avatar452005" style="width:48px; height:48px;" ><img
border="0"
src="http://us.i1.yimg.com/us.yimg.com/i/us/avtr/site/default/avatar_medium.png"
alt="" title="" id=img452005></div>
<p style="margin: 0; padding: 0 0 5px 0;">
<a
href="http://messages.finance.yahoo.com/profile?bn=9010&mid=452005"
target="_new" class="syslink $cssDef">iikbcn</a></p>


<hr size="1" noshade="" align="left" style="color: rgb(217, 217,
217);"/>
<p style="margin: 0; padding: 0 0 5px 0;">
<a
href="http://messages.finance.yahoo.com/s...d%3D452005%26mid%3D452005%26tof%3D2%26frt%3D1"
class="small syslink">Ignore User</a></p>
</td>
</tr>
</table>
</div>
<span class="corner-bottom"><span class="corner-left"></span></span>
</div>
</form>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,209
Messages
2,571,086
Members
47,684
Latest member
Rashi Yadav

Latest Threads

Top