[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTPAPI Timeout issue



Scott,
I tried that, but I'm still getting a timeout.  I believe that they are
expecting the username to be passed as a parameter not as basic_auth


> Dutch,
>
> User/Password in HTTPAPI are set by calling the http_setAuth()
> routine.   Assuming you want Basic authentication (which is the default
> in web browsers) you'd do it like this:
>
>       c                   callp     http_setAuth( HTTP_AUTH_BASIC
>       c                             : 'sk_test_BQokikJOvBiI2HlWgH4olfQ2'
>       c                             : '' );
>       c
>       c                   eval      rc = http_url_post(
>       c 'https://api.stripe.com/v1/charges'
>       c                             : myPointer
>       c                             : dataSize
>       c                             : '/tmp/testpost.html'
>       c                             : HTTP_TIMEOUT
>       c                             : HTTP_USERAGENT
>       c                             : 'application/x-www-form-urlencoded'
> )
>
>
> On 2/22/2015 7:04 AM, RPG List wrote:
>> Scott,
>> I am attempting to send a login credential, no password, just the login.
>>
>> It must be sent via https and with application/x-www-form-urlencoded, I
>> thought I could use the curl example but I see that was wrong.
>>
>>
>>
>> -----------------------------------------------------------------------
>> This is the FTPAPI mailing list.  To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> -----------------------------------------------------------------------
>>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------