Read a Serasa Data String

0

I need to make a query on Serasa Experian services in my application.

I have already assembled the whole layout and when I make the request directly through the browser, I have the expected return perfectly

https://mqlinuxext.serasa.com.br/Homologa/consultahttps?p=????????????        B49C      000001050000193JC     FI                   S99SINIAN                               N                                                                                                                                                                                                                                                                                                                  P002RSPU                                                                                                           I00100R                                                                                                            T999

Where: ???????????? = username and password to access.

Now, does anyone have any suggestions on how to make this request through php? I'm trying to do via cURL but the return is always "REQUIREMENT CONTAINS LESS THAN 24 BYTES"

    
asked by anonymous 23.09.2015 / 21:07

2 answers

4

Applying a urlencode only in the parameter, the error does not occur.

    
30.09.2015 / 21:49
0

try using file_get_contents () , please remember to stop using a URL to option allow_url_fopen in your php must be active.

Embrace

    
23.09.2015 / 21:18