schoi Posted September 20, 2008 Share Posted September 20, 2008 I'm integrating two sites together for a friend. However the site I'm integrating to has a security token system within the the login form. It's only a hidden text field. I can use curl to programmatically post the username and password to their login script and it works. but how do I obtain the token? It gives an error saying "invalid authenticity token" I was thinking of downloading the page then searching the xhtml but how do I search for an input tag with a given name? Link to comment https://forums.phpfreaks.com/topic/125069-downloading-page-then-searching-xhtml-for-particular-tag-with-specific-name/ Share on other sites More sharing options...
waynew Posted September 20, 2008 Share Posted September 20, 2008 strpos() Then work it out from there. Link to comment https://forums.phpfreaks.com/topic/125069-downloading-page-then-searching-xhtml-for-particular-tag-with-specific-name/#findComment-646363 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.