Feature #4697

Lenovo Warranty lookup website changed

Added by SphynXz about 6 years ago. Updated over 4 years ago.

Status:ResolvedStart date:12/09/2013
Priority:HighDue date:
Assignee:orthagh% Done:

100%

Category:-
Target version:-

Description

Simple change : the form changed from GET method to POST.

lenovo.class.php Magnifier - lenovo.class.php (3.81 KB) Penflame, 07/25/2014 01:59 PM

Associated revisions

Revision 203
Added by SphynXz about 6 years ago

See #4697

-Add POST support to CURL
-Register post data for Lenovo
-New function to get post (same concept as getUrl)

Revision 219
Added by orthagh over 4 years ago

new method for parsing lenovo; see #4697

History

#1 Updated by SphynXz about 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by Penflame over 5 years ago

Hello,

I have change a fonction "getSupplierInfo" in lenovo.class.php with the new url:

function getSupplierInfo($compSerial=null, $otherserial=null) {
$info["name"]="Lenovo";
$info["supplier_url"] = "https://csp.lenovo.com/ibapp/il/WarrantyStatus.jsp?";
$info["url"] = $info["supplier_url"]."serial=".$compSerial."&sysMachType=".$otherserial."&btnSubmit";
return $info;
}

For me, this fonction is fonctional on url though not in plugin (Import KO (2014-07-25))

#4 Updated by lmastain about 5 years ago

HI how can we use this URl to have plugin be functionnal ?? http://support.lenovo.com/fr/fr/warrantylookup
Thank you

#5 Updated by Penflame about 5 years ago

There are a Capcha on this URL http://support.lenovo.com/fr/fr/warrantylookup (for example:
<form novalidate="novalidate" action="/services/fr/fr/warrantylookup/docapvalidation/60c6776d-f797-4ccb-88f7-f7e63abc4086?dataSource=057742d3-fe65-492c-8fa6-c4ddc5da5727" class="serial8i NumberForm" data-ajax="true" data-ajax-complete="WarrantylookupLoadComplete()" data-ajax-mode="replace" data-ajax-update="#resultDiv" id="serialNumberForm" method="post"> )__

The best solution is to use this URL https://csp.lenovo.com/ibapp/il/WarrantyStatus.jsp?type=&serial=##serialnumber##

#6 Updated by orthagh about 5 years ago

  • Assignee changed from SphynXz to orthagh
  • Target version deleted (1.6.1)

nop,

this url https://csp.lenovo.com/ibapp/il/WarrantyStatus.jsp?type=&serial=##serialnumber##
doesn't contains any start date (only an end date of warranty)

The new one (http://support.lenovo.com/us/en/warrantylookup) contains all the needed information but cannot be parsed for the moment (ajax call with csrf protection)

no more idea for the moment

#8 Updated by ludof54 over 4 years ago

Bonjour, serait-il possible que le plugin gère les extensions de garantie (Surtout pour Lenovo).
En effet, il trouve bien la date de début mais met systématiquement la durée de garantie à 12 mois alors que concernant notre parc, c'est 36 mois en prenant en compte l'extension de garantie

Also available in: Atom PDF