fix: update api urls & add user-agent header#3
fix: update api urls & add user-agent header#3matiasneil wants to merge 1 commit intoevictorero:mainfrom
Conversation
|
Does this work? Trying to test the endpoint through Postman but Incapsula blocks any results |
It's working for me, did you modify the User-Agent header like I did on these changes? Make sure Postman is not sending its own value there. |
|
I did, i have no idea of what I'm doing wrong. I'm going to send my cURL request here. I would appreciate it if you could help me. I have 0 experience with Go since i mainly develop with Java/Python curl ^"https://api-air-flightsearch-green.smiles.com.br/v1/airlines/search?cabin=ALL&originAirportCode=FLN&destinationAirportCode=GRU&departureDate=2024-10-16&memberNumber=&adults=1&children=0&infants=0&forceCongener=false&cookies=_gid^%^3Dundefined^%^3B^" ^ |
|
Try importing mine on Postman curl --location 'https://api-air-flightsearch-green.smiles.com.br/v1/airlines/search?adults=1&cabinType=all&children=0¤cyCode=ARS&departureDate=2024-09-20&destinationAirportCode=EZE&forceCongener=true&infants=0&isFlexibleDateChecked=false&originAirportCode=PUJ&r=ar&tripType=2' |
|
Hello. |

Minor changes have been made to make the code work again.