1

(1 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

I'm looking for any help with the code below. Basically the ip:port string keeps changing and may contain more than one true value in str and i wonder if is possible to use a regex using the search function to get the all ip:port and print in demo.

<p id="demo"></p>

<script>
var str = "Please 127.0.0.1:80 locate where 127.0.0.2:80 occurs!";
var pos = str.search("\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?):\d{1,5}\b");
document.getElementById("demo").innerHTML = pos;
</script>

Thanks

2

(1 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

Hi,

I'm looking for help on a JSON question. The server only accepts POST data in a JSON format and i want to submit data but i don't know how is it possible in html or javascript.

Thanks

3

(1 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

Hi,

I'm developing a Ajax page that requests two urls. The first is a POST request and the second is a GET request.
I'm using time as a method between requests because the the GET request is only valid after the POST is made.

My questions are:
Is there any better way to start the GET request after POST without being time?

How to obtain all the info from the POST request (cookie, headers, etc) and made available with the GET request?
This is for the server to reconize the POST and GET coming from the same machine, user and browser.

Thanks

4

(3 відповідей, залишених у PHP)

Hi, Thanks. Since i didn't got a response here i posted on another forum and got the answer.

Example to help anyone that reads this thread looking for a similar response

  $sites = fgets($file);
  echo file_get_contents("http://127.0.0.1:81/index.php?url=$sites");

Add the first line to the loop and change $file in the second line which is a resource to the string $sites

5

(3 відповідей, залишених у PHP)

No answer, really?

6

(3 відповідей, залишених у PHP)

Hi,

I posted a few minutes ago a question regarding the convertion of a resource into a string in php. I did create a working example using mail function and one of the mods flag it as a spam tool. Here is another example to solve this question without been a spam tool.

Here is the code:

<?php
$file = fopen("sites.txt","r");

while(! feof($file))
  {
  echo file_get_contents("http://127.0.0.1/index.php?url=$file");
  echo fgets($file). "<br>";
  }

fclose($file);
?>

Thanks

7

(1 відповідей, залишених у PHP)

Hi,

I was creating this little program to help me out sending emails but there is a issue i can't solve.

Convert a resource to a string
$file returns Resource id #3 instead of the value of the string

Here is the code:

<?php
$file = fopen("emails.txt","r");

while(! feof($file))
  {
  mail($file, 'Thanks for joining!', Hi\nWe are glad to see you onboard\n\nPrivateloader);
  echo fgets($file). " - just received a email.<br>";
  }

fclose($file);
?>

Thanks
Privateloader

8

(0 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

Hi,

I have another request for help on a JSON API. I'm trying to build a program that will make a request to the Wayback JSON API and use the information to show to the user. As there is too many JSON formats i couldn't make it work using the examples i already have.

The request URL is:

[code]http://archive.org/wayback/available?url=example.com[/code]

And the result is:
[code=JSON]{
    "archived_snapshots": {
        "closest": {
            "available": true,
            "url": "http://web.archive.org/web/20130919044612/http://example.com/",
            "timestamp": "20130919044612",
            "status": "200"
        }
    }
}[/code]

The last code that i'm using is (Not working):
[code=JavaScript]<script>
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function() {
        if (this.readyState == 4 && this.status == 200) {
            var myObj = JSON.parse(this.responseText);

            for (x in myObj.archived_snapshots.closest) {

                document.write(''+ myObj.archived_snapshots.closest[x].available +'\n');
            }
        }
    };
    xmlhttp.open("GET", "http://archive.org/wayback/available?url=example.com", true);
    xmlhttp.send();
</script>[/code]

I'm only using this code because it has worked previously on other projects but i don't think that is correct at all. As the previous projects worked in a loop.

Thanks

9

(8 відповідей, залишених у Інше)

Early this morning it started to working. Both Blogtrottr.com & Ift.tt (Ifttt.com)

Thanks

10

(8 відповідей, залишених у Інше)

Yes, i have tried them. Blogtrottr.com seem easy to use but i didn't receive any emails. Ifttt.com is more complicated and it didn't work.

11

(8 відповідей, залишених у Інше)

No can't seem to use them to work. MailChimp or GetResponse :(

12

(8 відповідей, залишених у Інше)

Hello,

I have been searching around for a service that sends a RSS feed that i select to my email.
This way i have the latest releases in my email.

Is there any service that does that? (I have tried a few but does work)

Thanks

13

(1 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

Could anyone shed some light on how to make it work?

I just need the right json method.

Thanks

14

(1 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

Hi,

I want to provide to users a simple method to check if they have currently signup.
To achieve this i'm using a json request that will get the page and show only the elements i want.

Below is a generic json request script that i have use in the past for lists.

<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
        var myObj = JSON.parse(this.responseText);
      document.write('<center><table><tr><td>');
      for (x in myObj.matches) {

      document.write(''+ myObj.matches[x].ip_str +'<br>');
}
      document.write('</td></tr></table></center>');
}
};
xmlhttp.open("GET", "https://www.example.com", true);
xmlhttp.send();
</script>

I want to use the code above to get the code below and only show some elements

[{"banner_type":null,"id":"2162875","campid":"8909","ip":"154.69.47.83","subid":"","subid2":"","subid3":"","earn":"300.0","ddate":"2018-04-05","dtime":"02:36:11","ustamp":1491377771,"preid":null,"gateid":"1310615","country":"US","currency":"USD","banner_id":"0","type":"CPC"}, {"banner_type":null,"id":"2155364","campid":"10357","ip":"111.125.111.139","subid":"","subid2":"","subid3":"","earn":"0.80","ddate":"2018-04-04","dtime":"08:29:26","ustamp":1491312566,"preid":null,"gateid":"1310615","country":"PH","currency":"USD","banner_id":"0","type":"CPC"}]

I just want to show the user some elements like ip, earn, ddate and country.

Thanks

15

(7 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

koala написав:

Do not mistake http:// for file:///.

OK, As far as i know html and JavaScript are client languages so theoretically the protocol http:// and file:/// are very similar when using this two languages. Am i wrong?

Also at the console i found another error

Uncaught RangeError: Maximum call stack size exceeded
 at RegExp.test (<anonymous>)
  at Object.trigger (data:text/javascript;|||:3)
 at Function.ajax

I'm using ||| to reduce the line but basically is the JQuery library file in Base64. I'm using URIs to embed JavaScript files into one html file. Will this stop JQuery library from loading?

16

(7 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

So according with what i just read it doesn't work with Chrome nevertheless using Chrome in http://127.0.0.1 works.

17

(7 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

/KIT\ написав:

Are you sure "http://www.site.com" exist? Show your code.

I'm using the http://www.site.com as an example. The real purpose is to reach any site.

Also the jquery request works with http://127.0.0.1 using LiteServe http server.
(The realtime log, register the request)

Here the Jquery code that i'm using where "http" is defined by the user and the button calls "myhttp" function.

<script>
function myhttp() {
    var http = document.getElementById("http").value;
    var dataString = 'index.html';
        $.ajax({
            type: "GET",
            url: http,
            data: dataString,
            cache: false,
        });
    }
</script>

Thanks

18

(7 відповідей, залишених у JavaScript, TypeScript, ECMAScript)

Hi,

I'm using JQuery to make a POST request but it's giving this error on the console.

Failed to load http://www.site.com: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

What am i missing?

19

(1 відповідей, залишених у Оцінка сайтів)

Email SPAM Prank is a tool to send a large amount of emails to any email in the world.
A user just need to write the target email and hit enter. Instantly the target email will start receiving emails.

Note: There is a private version that sends more emails, PM me.

Download:
http://www.mediafire.com/file/xofc996cv … ion%29.rar

Virus Analysis
https://virustotal.com/dk/file/ad963e35 … 498729953/