Results 1 to 3 of 3

Thread: How to send HTTP request

  1. #1
    Davisricky is offline Senior Member
    Join Date
    Dec 2009
    Posts
    331
    Rep Power
    3

    Default How to send HTTP request

    How to send HTTP request from specific IP?

    I have a small computer lab with the appropriate address of IP, in this network, I want to send an HTTP request from any particular sender IP, but I want my request to specify the specific IP from not from the default. I use a lot of software, but I could not get a solution for my problem, for which I beg you, give me the correct solution for this.

  2. #2
    Garcíarobine is offline Senior Member
    Join Date
    Dec 2009
    Posts
    334
    Rep Power
    3

    Default

    Follow the given asp code which is resolve your problem.

    xmlRequest = "<?xml version=""1.0"" encoding=""utf-8""?>" &_
    "<GetItemRequest xmlns="" Components"">" &_
    "<RequesterCredentials>" &_
    "<AuthToken>"&AuthToken&"</AuthToken>" &_
    "</RequesterCredentials>" &_
    "<ItemID>"&eBayItemID&"</ItemID> " &_
    "</GetItemRequest>"
    Last edited by nitesh14; 02-06-2010 at 04:04 PM.

  3. #3
    RodríguezBrown is offline Senior Member
    Join Date
    Dec 2009
    Posts
    322
    Rep Power
    3

    Default

    I give you the best solution for this, because I am also facing the same problem in my network somebody send packets to my IP-address, I'll find out how they wanted to do this, for this they use the following Java Script.

    String req = "your web address";
    try {
    ADRES adres = new ADRES(req);
    HttpADRESConnection conn = (HttpADRESConnection) adres.openConnection();
    InputStream requestStream = conn.getInputStream();
    BufferedOutputStream test = new BufferedOutputStream(new FileOutputStream("url"), 4 * 1024);
    byte b = 0;
    while ((b = (byte) requestStream.read()) != -1) {
    test.write(b);
    }
    test.flush();
    } catch (Exception ex) {
    ex.printStackTrace(System.err);
    }
    Last edited by nitesh14; 02-06-2010 at 04:03 PM.

Similar Threads

  1. How to send HTTP apply for from specific IP?
    By BrooksGray in forum Programming
    Replies: 1
    Last Post: 02-18-2010, 04:00 PM
  2. Bad file request
    By Jim Crow in forum General Networking
    Replies: 0
    Last Post: 07-08-2009, 12:02 PM
  3. 400 - Bad request
    By Johnny Cuzens in forum General Networking
    Replies: 0
    Last Post: 07-08-2009, 10:48 AM
  4. Computer Hope request
    By leshter in forum Everything Else
    Replies: 1
    Last Post: 04-09-2009, 11:01 AM
  5. Software Request
    By uretech987 in forum General Software Terms
    Replies: 1
    Last Post: 03-21-2009, 05:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48