Programmatically pass a url to an anonymous proxy like http://www.trycatchme.com - proxy

I'm using .net httpwebrequest &/or webclient class
How can i Progamatically pass a url to an anonymous proxy like http://www.trycatchme.com and get back a result
<form method="post" action="/index.php">
<input id="address_bar" type="text" name="q" value="http://www." onfocus="this.select()" />
<input id="surf_button" type="image" value="Surf Now" src="images/surfnowbtn.gif" />
<input type="hidden" name="hl[include_form]" value="1" />
<input type="hidden" name="hl[remove_scripts]" value="1" />
<input type="hidden" name="hl[accept_cookies]" value="1" />
<input type="hidden" name="hl[show_images]" value="1" />
<input type="hidden" name="hl[show_referer]" value="1" />
<input type="hidden" name="hl[base64_encode]" value="1" />
<input type="hidden" name="hl[strip_meta]" value="1" />
<input type="hidden" name="hl[session_cookies]" value="1" />
</form>

The HttpWebRequest.Proxy Property might be what you want.

Related

C# Launching Yodlee FastLink

I'm doing a project to launch yodlee fastlink. I was able to get the token and userSession and trying the below codes. I'm only getting "Cannot POST resource". I'm trying to find a more detailed/simpler documentation. Any help would be appreciated.
<form action="https://node.developer.yodlee.com/authenticate/restserver" method="post" name="rsessionPost" id="rsessionPost" target="yodleeIframe">
<input style="visibility: hidden" type="text" name="rsession" placeholder="rsession" value="08312016_0:149676f79ace306255a2c7827f9db590ccabd7350ad5d952f31fc503675bba9ec522728c213a9e5c3e98bd8ceff795c88f9a6f80040a68ce325ae54759f6e504" id="rsession" /><br />
<input style="visibility: hidden" type="text" name="app" placeholder="FinappId" value="10003600" id="finappId" /><br />
<input style="visibility: hidden" type="text" name="redirectReq" placeholder="true/false" value="true" /><br />
<input style="visibility: hidden" type="text" name="token" placeholder="token" value="e59f51a169f52925cd715a945630686e59667d2d1fae511fd50b4e292a8e7342" id="token" /><br />
<input type="submit" name="submit" />
</form>
It seems like there is a forward slash '/' missing at the end of the URL.
Please put it there and submit the form you should be able to access Fastlink.
"https://node.developer.yodlee.com/authenticate/restserver/"

Grails ajax radio buttons

I'm looking to have two radio groups within a single form. When you select a radio button (product type) form the first group, I'd like to update the second group (quantity) and adjust the price using Ajax. Does Grails offer an Ajax radio solution?
<form>
<div>
Product Type
<input type="radio" name="q1" value="1"/>
<input type="radio" name="q1" value="2"/>
<input type="radio" name="q1" value="3"/>
</div>
<div>
Quantity
<input type="radio" name="q2" value="1"/> ${price}
<input type="radio" name="q2" value="2"/> ${price}
<input type="radio" name="q2" value="3"/> ${price}
<input type="radio" name="q2" value="4"/> ${price}
<input type="radio" name="q2" value="5"/> ${price}
</div>
<input type="submit" name="submit" id="submit" />
</form>
Take a look at the g:formRemote tag:
http://grails.github.io/grails-doc/2.1.0/ref/Tags/formRemote.html

Conditional Statement Hacks - IE8 and none IE8

Is anyone able to assist me before I smash my head on the wall?
I am trying to get this form to work:
<form action="" method="post" name="login_form">
<!--[if !IE]>-->
<input type="text" id="emailcust" name="username" class="custbox" value="Email Address" />
<input type="text" id="passcust" name="password" class="custbox" value="Password" />
<p>NON INTERNET EXPLORER!</p>
<!--<[endif]-->
<!--[if IE 8]>
<input type="text" id="emailcust2" name="username" class="custbox" value="" />
<input type="password" id="passcust2" name="password" class="custbox" value="" />
<p>INTERNET EXPLORER!</p>
<![endif]-->
I OFFICIALLY HATE IE!
Modern browsers appear to be picking up the first IF section and ignoring the latter (as per my want), but IE8 is ignoring both IF sections.
SOLUTION
It seems that the entire form has to be included for each if statement. Therefore within the following works:
<!--[if !IE]>-->
<div id="whatever">
<form action="" method="post" name="login_form">
<input type="text" id="emailcust" name="username" class="custbox" value="Email Address" />
<input type="text" id="passcust" name="password" class="custbox" value="Password" />
<p>NON INTERNET EXPLORER!</p>
<input type="submit" class="cust_submit" value="Login" />
</form>
</div>
<!--<[endif]-->
<!--[if IE 8]>
<div id="whatever">
<form action="" method="post" name="login_form">
<input type="text" id="emailcust2" name="username" class="custbox" value="" />
<input type="password" id="passcust2" name="password" class="custbox" value="" />
<p>INTERNET EXPLORER!</p>
<input type="submit" class="cust_submit" value="Login" />
</form>
</div>
<![endif]-->

How to implement paypal in Codeigniter

I have developed an site using Codeigniter and I want to put paypal for one of my application.For that I have followed many forms like THIS but while I followed all the steps,it giving me blank screens...Can anyone tell me or even suggest me for the better tutorial for Paypal..Thanks in advance..
use following paypal form pattern for paypal payment
//$urlpaypal = "https://www.paypal.com/cgi-bin/webscr";
//$urlpaypal = "https://www.sandbox.paypal.com/cgi-bin/webscr";//sandbox
<form method="post" name="frmPayPal" id="frmPayPal" action="<?=$urlpaypal ?>">
<input type="hidden" name="item_number" value="<?=$id?>">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="business" value="<?=$businessId?>">
<input type="hidden" name="redirect_cmd" value="_cart">
<input type="hidden" name="handling_cart" value="<?=$shipprice?>">
<input type="hidden" name="cmd" value="_ext-enter" />
<input type='hidden' name='upload' value='1'>
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="lc" value="<?php echo $lccode;?>">
<input type="hidden" name="bn" value="PP-SubscriptionsBF">
<input type="hidden" name="image_url" value="<?=base_url()?>img/logo.jpg">
<input type="hidden" name="return" value="<?=base_url()?>index.php/payment/receipt/<?php echo $id;?>">
<input type="hidden" name="notify_url" value="<?=base_url()?>index.php/payment/notify">
<input type="hidden" name="cancel_return" value="<?=base_url()?>index.php/payment/cancle">
<input type="hidden" name="invoice" value="<?=base64_encode($invoiceId)?>">
<input type="hidden" name="currency_code" value="<?php echo $currencycode;?>">
<input type="hidden" name="src" value="1" />
<input type="hidden" name="sra" value="1" />
<input type="hidden" name="cs" value="0" />
<input type="hidden" name="custom" value="<?=$customFieldValue?>">
<input type="hidden" name="discount_amount_cart" value="<?=$discount_amount?>">
<input type="hidden" name="cc_number" value="123">
<input type="hidden" name="cpp_ headerback_ color" value="78f3f5">
<input type="hidden" name="cpp_ headerborder_color" value="78f3f5">
<input type="hidden" name="cpp_payflow_ color" value="78f3f5">
</form>
and js code for auto form submission in one second
<script type="text/javascript" language="javascript">
setTimeout("document.forms['frmPayPal'].submit()", 1000);
</script>

PayPal discount can't make it work

I'm trying to setup a discount for a the whole cart using PayPal + Codeigniter, I got this working withouth the discounts.
As far as I've read the only thing that I would need to do is set a hidden field discount_amount_cart as I saw here
Here is my form:
<form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr" name="paypal_form">
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="business" value="biz_1271300483_biz#xxxx.xx" />
<input type="hidden" name="return" value="http://xxxxxx.com/website/pt/paypal/success/8/4c237a03897e0" />
<input type="hidden" name="cancel_return" value="http://xxxxxxx.com/website/pt/paypal/cancel/8/4c237a03897e0" />
<input type="hidden" name="notify_url" value="http://xxxxxx.com/website/pt/paypal/ipn" />
<input type="hidden" name="custom" value="" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="cpp_header_image" value="http://xxxxxxxxx.com/images/logo.png" />
<input type="hidden" name="image_url" value="http://xxxxxxxxx.com/images/logo.png" />
<input type="hidden" name="invoice" value="4c237a03897e0" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="discount_rate_cart" value="10.00" />
<input type="hidden" name="first_name" value="Foo Bar" />
<input type="hidden" name="city" value="xxxx" />
<input type="hidden" name="address1" value="xxxxxx" />
<input type="hidden" name="zip" value="xxxxxx" />
<input type="hidden" name="lc" value="pt" />
<input type="hidden" name="email" value="xxxxx#xxx.pt" />
<input type="hidden" name="country" value="PT" />
<input type="hidden" name="item_name_1" value="Cloud Hosting WIN Business 25GB" />
<input type="hidden" name="item_number_1" value="200.00000003" />
<input type="hidden" name="amount_1" value="156" />
<input type="hidden" name="quantity_1" value="1" />
<input type="hidden" name="tax_rate_1" value="20" />
<p><input type="submit" name="pp_submit" value="Pagar" class="submit" /></p>
</form>
But when I "post" the fields the discount line won't appear, do I need to activate something in the merchant account, am I doing something wrong?
Cheers
Got it,
From the PayPal documentation:
When you use consolidated discount amounts, you should specify a consolidated tax value in tax_cart. If you do not specify a tax value and your profile specifies a tax rate, your profile tax rate is applied after the consolidated discount value is applied.
So I need to define my "global" tax amount for the cart with tax_cart.
The name of your discount input appears to be wrong:
<input type="hidden" name="discount_rate_cart" value="10.00" />
should be:
<input type="hidden" name="discount_amount_cart" value="10" />
Use discount_amount_cart to charge a
single discount amount for the entire
cart.
Use discount_amount_x to set a
discount amount associated with item x
Use discount_rate_cart to charge a
single discount percentage for the
entire cart.
discount_rate_cart - Applies to
entire cart however, this variable
will only work with the "Upload"
Method. Not the standard Add to Cart
variables.
This variable will be ignored if you
are including any individual sales tax
amount or rate in your upload method
code. This is because the sales tax
needs to be calculated after the
discount is applied to your items
therefore, the discount is applied to
the item Subtotal, not the Total.
Note, If you just using the standard
Add to Cart buttons, there no Discount
variables for the entire cart. as
they "only" apply a Discount to an
individual item.

Resources