f



post or get message posting

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>


0
RocketMan
2/1/2008 9:07:30 AM
comp.lang.perl.misc 33233 articles. 2 followers. brian (1246) is leader. Post Follow

4 Replies
1069 Views

Similar Articles

[PageSpeed] 0

RocketMan <rm@dontspamme.net> wrote:


> I have a form I need to post to with perl.


   perldoc -q form

       How do I automate an HTML form submission?


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
0
Tad
2/1/2008 11:53:38 AM
"Tad J McClellan" <tadmc@seesig.invalid> wrote in message 
news:slrnfq6222.ci0.tadmc@tadmc30.sbcglobal.net...
> RocketMan <rm@dontspamme.net> wrote:
>
>
>> I have a form I need to post to with perl.
>
>
>   perldoc -q form
>
>       How do I automate an HTML form submission?
>
>
> -- 
> Tad McClellan
> email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"

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/Stocks_%28A_to_Z%29/Stocks_I/threadview?m=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! 


0
RocketMan
2/3/2008 8:19:04 AM
RocketMan wrote:
> Here is an example of the form I'm trying to submit to.
> Go here, and then click "Reply".
> 
> http://messages.finance.yahoo.com/Stocks_%28A_to_Z%29/Stocks_I/threadview?m=tm&bn=9010&tid=452005&mid=452005&tof=2&frt=1
> 
> The reply form is the one that won't take a submit.

The reply form doesn't show up unless you are signed in.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
0
Gunnar
2/3/2008 8:50:57 AM
"Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message 
news:60ldk0F1rkpf2U1@mid.individual.net...
> RocketMan wrote:
>> Here is an example of the form I'm trying to submit to.
>> Go here, and then click "Reply".
>>
>> http://messages.finance.yahoo.com/Stocks_%28A_to_Z%29/Stocks_I/threadview?m=tm&bn=9010&tid=452005&mid=452005&tof=2&frt=1
>>
>> The reply form is the one that won't take a submit.
>
> The reply form doesn't show up unless you are signed in.
>
> -- 
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl

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/Stocks_%28A_to_Z%29/Stocks_I/reply?bn=9010&pid=452005&tof=2&.done=http%3A%2F%2Fmessages.finance.yahoo.com%2FStocks_%2528A_to_Z%2529%2FStocks_I%2Fthreadview%3Fm%3Dtm%26bn%3D9010%26tid%3D452005%26mid%3D452005%26tof%3D2%26frt%3D1" 
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/settings?users=iikbcn&.crumb=RcVV..HAwN/&SubmitAddIgnUsers=1&o=2&.done=http%3A%2F%2Fmessages.finance.yahoo.com%2FStocks_%2528A_to_Z%2529%2FStocks_I%2Freply%3Fbn%3D9010%26pid%3D452005%26tof%3D2%26.done%3Dhttp%253A%252F%252Fmessages.finance.yahoo.com%252FStocks_%252528A_to_Z%252529%252FStocks_I%252Fthreadview%253Fm%253Dtm%2526bn%253D9010%2526tid%253D452005%2526mid%253D452005%2526tof%253D2%2526frt%253D1" 
class="small syslink">Ignore User</a></p>
                </td>
            </tr>
        </table>
    </div>
    <span class="corner-bottom"><span class="corner-left"></span></span>
</div>
</form> 


0
RocketMan
2/3/2008 9:45:54 AM
Reply: