EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Difference to ver 11 and ver 12

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#30076
Posted: 07/21/2014 05:49:39
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

HI
I just compiled with latest ver 12 SBB and got not the requested result. But it works in ver 11. in the code the ogMyAN = '61870036'.
The site I got did not get the requested HMTL Code - but with ver 11 it works fine. Here are the snap shoots. In ver 12 the strin gis empty. What can I do?
The site is redirected via a lodapage JS code. Is there any change?


#30077
Posted: 07/21/2014 05:59:50
by Eugene Mayevski (EldoS Corp.)

We rewrote most of low-level functions in SBUtils and SBStrUtils and changed their behavior in some places (those functions are not intended for external use).

Please post the code snippet together with exact parameters here so that we could understand what didn't work for you.


Sincerely yours
Eugene Mayevski
#30078
Posted: 07/21/2014 06:09:40
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

The part of my code is:
Code

function TForm1.LT_GetHandelsname(Hd: TStrings): String;
var
  RegEx2: TRegExpr;
  HNAME: string;
  i: integer;


begin
  RegEx2:= TRegExpr.Create;
  RegEx2.ModifierS := True;
  RegEx2.ModifierI := False;
  RegEx2.ModifierM := False;
  RegEx2.ModifierX := False;
  RegEx2.ModifierG := False;
  HNAME:='';
  //HD.SaveToFile('detailog.txt');

    RegEx2.Expression :=  'pdpTitle">(.+)<';
    //ShowMessage('Header: '+HD.Strings[i]);
    if RegEx2.Exec(HD.Text) then
      begin
        //Repeat
        HNAME := trim(RegEx2.Match [1]);
        HNAME:= removeHTMLs(HNAME);

        //ShowMessage('HandlesName: = '+HNAME);
        //UNTIL NOT (RegEx2.ExecNext);
      end;

  RegEx2.Free;

  RegEx2:= TRegExpr.Create;
  RegEx2.ModifierS := True;
  RegEx2.ModifierI := False;
  RegEx2.ModifierM := False;
  RegEx2.ModifierX := False;
  RegEx2.ModifierG := False;

    RegEx2.Expression :=  '(&.+;)';
    //ShowMessage('Header: '+HD.Strings[i]);
//    HNAME:=MyHTMLDECODE(StringReplace(HNAME, '&trade;', '&#153;',[rfReplaceAll, rfIgnoreCase]));

    if RegEx2.Exec(HNAME) then
      begin
        //Repeat
        HNAME := trim(StringReplace(HNAME, RegEx2.Match [1], '',[rfReplaceAll, rfIgnoreCase]));
        HNAME:= removeHTMLs(HNAME);
        //ShowMessage('HandlesName: = '+HNAME);
        //UNTIL NOT (RegEx2.ExecNext);
      end;


  Result:= HNAME;
  RegEx2.Free;

end;

...
in the main routine:
..


ogMyAN:='61870036';  
   ElHttpsClient1.GET('https://www.lifetechnologies.com/order/catalog/product/'+ogMyAn+'?CID=search-product');

LF3_Handelsname:=LT_GetHandelsName(MMLOGDETAIL.Lines);

In the LT_GetHandelsName I search for the regex: 'pdpTitle">(.+)<'
from MMLOGDETAIL.Lines.
MMLOGDETAIL.Lines is the code retrieved from the .GET command.

Could you try to retrieve that site with that page? YOu will see that in v11
I got a positive match but not in ver 12.

Thanks for help
#30079
Posted: 07/21/2014 06:21:40
by Eugene Mayevski (EldoS Corp.)

The problem comes (at least) from parameter parsing in the URL. Still investigating as there seem to be more issues there.


Sincerely yours
Eugene Mayevski
#30080
Posted: 07/21/2014 06:27:34
by Eugene Mayevski (EldoS Corp.)

In response to your URL (when sent correctly), however, the server returns 302 response code (temporary redirect) leading to the same URL as initially requested. Are you sure that you have the correct URL?


Sincerely yours
Eugene Mayevski
#30081
Posted: 07/21/2014 06:29:10
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

Yes I think there must be made more. Maybe I will keep staying with ver 11.
Thanks for your help.
Let me know If I can be of any help and when I can use ver 12. I have 2 PCs now with ver 11 and ver 12. If I should run something, let me know.
THANKS

Walter
#30082
Posted: 07/21/2014 06:30:54
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

Yes I have the corr URL. BUt when I see the requesed html code there is a loadpage with JS. That is not done with ver 11. PLease try it with ver 11. You will see that there comes no Pageloader.
#30083
Posted: 07/21/2014 06:44:42
by Eugene Mayevski (EldoS Corp.)

Tried with version 11 and behavior is identical - redirect to the original URL.


Sincerely yours
Eugene Mayevski
#30084
Posted: 07/21/2014 06:53:21
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

could you see, that there is a JS PAgeloader loaded?
Please see the HTML code that is retured.

Maybe you could do an investigate with Fiddler.
As I sayed, ver 11 works fine but not ver 12.

Here is the site which should come: With the Headline (Arrow) which is the common-name of the chemical.


#30085
Posted: 07/21/2014 07:01:09
by Eugene Mayevski (EldoS Corp.)

Once again - for me version 11 does NOT work. This can be location-specific or anything else, but it doesn't work.


Sincerely yours
Eugene Mayevski
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 3751 times

Number of guests: 2, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!