Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: PHP
Dear All.
I want get data from url, I use HTTP_Request to post parameter and get data from url. If url not using token then get OK, but If url using token then get data not OK.
 
Please help me get data from url have use token.
thanks very much.
Posted 4-Nov-12 22:29pm
aa_zz606
Comments
n.podbielski at 5-Nov-12 6:34am
   
Token? What token?
aa_zz at 5-Nov-12 21:05pm
   
e.g: you need get data from url (www.yahoo.com with parameter: username, password).
I will use HTTP_Request(sendRequest), post[username], post[password] to url to get data. If www.yahoo.com use token then can not get data, but it not use token then get data OK
ryanb31 at 5-Nov-12 8:56am
   
This does not make any sense. You wrote some code and have not shared anything. How can we help?
aa_zz at 5-Nov-12 21:06pm
   
e.g: you need get data from url (www.yahoo.com with parameter: username, password).
I will use HTTP_Request(sendRequest), post[username], post[password] to url to get data. If www.yahoo.com use token then can not get data, but it not use token then get data OK
ryanb31 at 5-Nov-12 21:10pm
   
What is the token? Are you saying you have to validate first?
aa_zz at 5-Nov-12 23:36pm
   
token is value use MD5 to encode
n.podbielski at 6-Nov-12 2:04am
   
Some kind of cookie? Session id?
aa_zz at 6-Nov-12 2:52am
   
i use tool Tamper data then will found post parameter.
n.podbielski at 6-Nov-12 3:10am
   
then just add it to your code. I don't see a problem.
ryanb31 at 6-Nov-12 7:52am
   
So, what is your question then? If you need a token, you'll have to figure out how to create it from whatever site is requiring it. I am not sure how we can help with that.
aa_zz at 6-Nov-12 23:38pm
   
thanks all.
I get Cookie from tool "Tamper Data" and add http_Request->addCookie then get Data OK. But how to get value Cookie of Request Header Name same as tool "Tamper Data" ?
ryanb31 at 7-Nov-12 7:46am
   
Instead of using a tool can't you just ask how to create the token from whatever site you are trying to get to? If you use a hacking tool it may not be the same token every time.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I used curl_exec and success any URL, but any url have parametter don't found to set.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 499
1 Nirav Prabtani 338
2 OriginalGriff 175
3 _Amy 170
4 PIEBALDconsult 160
0 OriginalGriff 7,640
1 Sergey Alexandrovich Kryukov 6,836
2 Maciej Los 3,919
3 Peter Leow 3,698
4 CHill60 2,742


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100