Find Jobs
Hire Freelancers

Convert 20 lines of PHP TO ASP.NET

$2-8 USD / hour

Chiuso
Pubblicato più di 11 anni fa

$2-8 USD / hour

I need this code to be converted to asp.net : <?php $plate = "A71EPD"; $url="[login to view URL]"; $cookie = "[login to view URL]"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_REFERER, $url); $result = curl_exec($ch); $l_url1 = explode('<form method="post" id="homeForm" action="', $result); $l_url2 = explode('"><input type="hidden" name="persist_affiliateid" value="" />', $l_url1[1]); $l_url = $l_url2[0]; $an_id1 = explode('<input type="hidden" name="persist_SubscriberID" value="', $result); $an_id2 = explode('" />', $an_id1[1]); $an_id = $an_id2[0]; $token1 = explode('[login to view URL]', $l_url); $token = $token1[1]; $postdata = "&persist_affiliateid=" . "" . "&persist_SubscriberID=" . $an_id . "&persist_ReturnPath=" . "Homepage" . "&AutoLocateID=" . $token . "&VRM=" . $plate . "&DoLogin=" . "Login" . "&PasswordNotReset=" . "True" . "&AutocheckNow.y=" . "yes" . "&Confirmed=" . "" . "&DoHomepageLogin=" . "Login" . "&ConfirmVRM=" . "" . "&ProductId=" . "" . "&Homepage=" . "" . "&submit=Login%20into%20Account"; curl_setopt($ch, CURLOPT_URL, $l_url); curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata); curl_setopt($ch, CURLOPT_POST, 1); $final_result1 = curl_exec($ch); $final_result1 = explode('<div class="vehicleDescResult">', $final_result1); $final_result2 = explode('<br>', $final_result1[1]); $make = $final_result2[1]; $model = $final_result2[2]; $color = $final_result2[3]; if( $make ){ echo '{"car": { "RegNo": "' . $plate . '", "Make": "' . $make . '", "Model": "' . $model . '", "Color": "' . $color . '" }}'; } else{ echo '{"car": { "RegNo": "unknown", "Make": "unknown", "Model": "unknown", "Color": "unknown" }}'; } curl_close($ch); ?>
Rif. progetto: 2459047

Info sul progetto

9 proposte
Progetto a distanza
Attivo 12 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite
9 freelance hanno fatto un'offerta media di $8 USD/ora
Avatar dell'utente
Hi, Thanks for posting this transparent and simple task. We need to to change the curl syntax and change the parsing method. Please accept to start right away. Estimated time for this rask is : 1 HOUR
$8 USD in 1 giorno
4,7 (136 valutazioni)
6,6
6,6
Avatar dell'utente
Hi, please check PM!
$8 USD in 5 giorni
5,0 (30 valutazioni)
5,4
5,4
Avatar dell'utente
Hi, It's easy job - just have to change the curl to the webrequest and fix the parsing. I can do it in ~1 hour as I'm expert in web scraping.
$8 USD in 1 giorno
5,0 (39 valutazioni)
4,7
4,7
Avatar dell'utente
can do it now. waiting for acceptance.
$8 USD in 1 giorno
5,0 (9 valutazioni)
4,5
4,5
Avatar dell'utente
A warm greeting, I work as a Professional Developer I have 7 years experience I program it so in c, c++, c#, java, vb, matlab, asm, python, AutoLISP, aspx, php, html, dhtml, css, ajax, jquery, mvc, MSSQL, MySQL, Silverlight. I have Developed applications Such as WCF, WFP, Win32, MFC, STL, ATL, I have high specialization and experience in web and desktop platforms Developing.
$8 USD in 7 giorni
4,7 (13 valutazioni)
4,3
4,3
Avatar dell'utente
Hi, We have gone through your requirement. We can do this. We have sent you a private message. Kindly check that. Thanks Shalini
$8 USD in 10 giorni
5,0 (3 valutazioni)
3,6
3,6
Avatar dell'utente
I will give you project on time.
$10 USD in 8 giorni
0,0 (0 valutazioni)
0,0
0,0
Avatar dell'utente
Project should be ready in 1hours after bid accept.
$10 USD in 0 giorno
0,0 (0 valutazioni)
0,0
0,0

Info sul cliente

Bandiera: ROMANIA
Cluj Napoca, Romania
5,0
3
Membro dal giu 23, 2012

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.