Jump to content


Photo

send data/keystrokes to external website


  • Please log in to reply
9 replies to this topic

#1 sdaniels

sdaniels
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 31 July 2006 - 04:44 PM

Is it possible to send data to an external website?

for instance: if i have a link on a site that I maintain. I wnat to click the link and have it open a different website that I do not maintain and fill out some form info on that site automaticly...

can this be done?

#2 Vinze

Vinze
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 31 July 2006 - 04:56 PM

Yeah, I recently found out how to, it involves fsockopen() and more, however, now I tried this on normal hosts (not my local one) then it's always blocked. Anyway, I don't know what kind of data you want to send but POST and GET data are possible. If you want that, say so and I'll see if I can find the link.
WTH? I became a guru by asking questions!

#3 sdaniels

sdaniels
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 31 July 2006 - 05:13 PM

thats exactly what im looking for.

an example of what I need would be something like a link on my site that says yahoo, and when clicked it openes yahoo.com and then submits a post in the search field.

Im tryiing to make a page that will store all my usernames and passwords in a table, when i click the link to the site I want it to launch the page and fill out my info automaticly.

and for those of you that are going to tell me: yes i am aware that most browsers have a feature that allready does this. but it only works from that pc under my profile, i want to be able to access it from anywhere.

#4 r3gan

r3gan
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 31 July 2006 - 05:19 PM

You might be able to accomplish this by simply finding out the variable names of the target site's form, and then passing the variables to that page.  For example, if the form's text field is named "userName", then you might be able just point to http://www.example.c...Name=myusername

#5 sdaniels

sdaniels
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 31 July 2006 - 05:32 PM

Will that work for pages that are not encoded with PHP as well?

#6 r3gan

r3gan
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 31 July 2006 - 05:40 PM

It will work for any page that has the ability to set a default or initial value to the form field. 

#7 Vinze

Vinze
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 31 July 2006 - 05:47 PM

I was talking about this. I recommend using this default function as it saves you time and can handle POST and GET data. Get it here.
WTH? I became a guru by asking questions!

#8 xyph

xyph
  • Staff Alumni
  • Advanced Member
  • 3,712 posts
  • LocationSurrey, BC

Posted 31 July 2006 - 05:50 PM

Most sites will distinguish between get and post variables when parsing forms. Just find their action page in the form tag, and replicate their form, jsut change the element types to hidden (except the submit button) and fill in your values. Then just name the submit button the site you're logging in to.
Everything you need to know about storing user-names and passwords
http://www.openwall....Users-Passwords
Blank Page? Try forcing errors to display
ini_set('display_errors',1);
error_reporting(-1);

#9 sdaniels

sdaniels
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 31 July 2006 - 05:52 PM

Perfect, thats what I was lookin for. Thanks for the help on this one!

#10 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 31 July 2006 - 06:29 PM

also check out CURL
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users