FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » example CURL to form in Https
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: example CURL to form in Https [message #177357 is a reply to message #177356] Sat, 17 March 2012 14:55 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 3/17/2012 9:38 AM, Vivian wrote:
> On 17 Mar, 06:23, Jerry Stuckle<jstuck...@attglobal.net> wrote:
>> On 3/16/2012 10:44 PM, Vivian wrote:
>>
>>> friends I am testing and researching various examples of work and
>>> nothing
>>> example we will get to https page
>>> as script to get email and password and click access automatically?
>>
>> What have you looked for? Have you tried cURL?
>>
>> Note that any script you do find will be heavily dependent on the page
>> you're accessing. Normally scripts similar to what (I think) you're
>> requesting have to be done from scratch.
>>
> I'm trying to feed with CURL code live_HTTP_headers (firefox plug in)
> but it shows blank page because it's https.
>
> I want a code to enter user and password and click signup now.
>
> Example page:
> https://signup.netflix.com/Login
>
> i am no idea to work, help
> Vivian
>
>
>
>
>

<Top posting corrected>

The firefox plugin won't show anything because PHP isn't running under
the browser. cURL will run separate from the browser and not interact
with your browser.

If you're loading a web page with PHP code, that web page will be
running on a server somewhere, and that server would be connecting to
the site. If you're running PHP as a CLI (Command Line Interface), then
your computer will be connecting, but you won't see anything in a browser.

What you will need to do is use cURL to request the page, parse the
response, then send the necessary information back to the server. On
some sites it's pretty easy, but others make it very difficult or almost
impossible by requiring things like javascript generated values, CAPTCHA
codes, etc.

cURL works fine with https. The most common problem is not setting cURL
up to accept the server's certificate (which provides an error message).

http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltl s-protected-sites/
has a good description on how to set up cURL to accept the certificate.

Other than setting the proper options in cURL, there really isn't any
difference in accessing URIs with http or https protocols.

P.S. Please don't top post. Thanks.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Search or Post Jobs
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 07:22:08 GMT 2024

Total time taken to generate the page: 0.04239 seconds