fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. sebabahn
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    sebabahn

    @sebabahn

    0
    Reputation
    295
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    sebabahn Unfollow Follow

    Latest posts made by sebabahn

    • RE: Check HTTP request for string part

      Anybody an idea how to solve this?

      posted in Questions & Answers
      S
      sebabahn
    • RE: Check HTTP request for string part

      Let me make this more clear.

      I created this process:

      0_1505772047305_Bildschirmfoto 2017-09-19 um 00.00.09.png

      Now I want to check the HTTP response, and the condition should be true if the response CONTAINS my string. So I think I need a "contains" in the Equals list, not "==", correct? How can I implement this?

      posted in Questions & Answers
      S
      sebabahn
    • RE: Check HTTP request for string part

      ok, can you provide me a code sample to access that value? what is the name of the response variable?

      posted in Questions & Answers
      S
      sebabahn
    • RE: Check HTTP request for string part

      @fxDreema

      This is the plain text output 😉

      Output from the website is also possible as JSON, PHP or XML.

      maybe XML is good for searching for a string, but how can I access the HTTP response in a condition (not the first condition block, but the second with code input)?

      posted in Questions & Answers
      S
      sebabahn
    • Check HTTP request for string part

      Hi,

      I want to use a HTTP request to check for a valid license.

      HTTP request works, when I switch on the response message I receive the output from the website correctly.

      Now I want to check, if some parts of the response are adequate.

      This is the complete response:

      Array
      (
          [api_version] => 1.020
          [current_time] => 2017-09-08 00:12:47
          [result] => success
          [data] => Array
              (
                  [is_license_valid] => Y
                  [is_license_key_found] => Y
                  [purchase_id] => ALE7KD7W
                  [license_key] => RB73P-VVRS7-W3KEH-S4WSC-8UZC3-9JDQZ-D75EQ-VZMC7
                  [billing_tatus] => completed
                  [billing_tatus_msg] => Vollständigt bezahlt
                  [last_payment_at] => 2017-09-07
                  [last_payment_at_msg] => 07.09.2017
                  [next_payment_at] => 
                  [next_payment_at_msg] => 
                  [last_transaction_type] => payment
                  [last_transaction_type_msg] => Zahlung
                  [are_returned_data_public] => N
              )
      
      )
      

      I only want to check for

      [is_license_valid] => Y
      

      If this is missing or "N", I want to stop the EA, if it is "Y" it should run as expected.

      How can I set up a condition to check this part of a string?

      Best regards,
      Sebastian

      posted in Questions & Answers
      S
      sebabahn