Welcome, Guest. Please login or register.

Author Topic: Need help from an HTTP expert  (Read 1860 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Need help from an HTTP expert
« on: September 23, 2007, 06:44:28 PM »
I'm trying to write a front end for the orange.co.uk SMS service. I can fake a login to the site by posting the mobile number and password. The problem I am having is with the sending part.

When you choose the option to send an SMS, a form is presented which has some kind of session ID or similar in its post action. This ID is generated for each message, not for each login. When you click the send button this is posted along with the recipient's phone number and the message to another page which asks you to verify the details. When you then press confirm the message is sent.

I have tried posting the fields from the confirmation page (the phone number and the message) directly to the script which sends the message, but it didn't work - it just redirected me to the blank form for entering the message. So clearly it has to go through each stage in order to work. So I'm thinking what I need to do is the following:

1. My front end captures the logon details and submits them to the login form to fake a login
2. My front end captures simulates clicking the "send SMS" button to generate the ID
3. The resulting page (the sending form) needs to be downloaded to capture the form's action, which contains the required ID
4. My front end captures the recipient number and message
5. These are posted along with the ID to the confirmation page
6. The front end simulates clicking the "confirm" button

Step 1 is done. It's the rest I'm struggling with. I need to know how to save a page to a file without having to load it in to a web browser and then save the source. That's for steps 2, 3 and 6. The rest I should be able to work out.

Any help appreciated!

--
moto


Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Need help from an HTTP expert
« Reply #1 on: September 25, 2007, 09:56:33 AM »
Anyone?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: Need help from an HTTP expert
« Reply #2 on: September 25, 2007, 10:54:25 AM »
I am not an HTTP expert, but I try to be helpful here. :-)

TCP/IP can be (and often are) nested through NAT. Maybe you should look at how HTTP handles with that. :-)
And the canary said: \'chirp\'