Skip to main content
Question

Hi, I use httpcaller, but in the bodyresponse I don't have the full answer. Here it's the link : https://webapp.csrs-scrs.nrcan-rncan.gc.ca/CSRS/tools/NTS/031I10746649 I have this answer with a browser :

  • December 2, 2022
  • 3 replies
  • 3 views

031I10746649, UTM18, E 674600, N 5164900, N46 36 54, W72 43 11, 46.6149, -72.7197

 

and with htppcaller, I have : 031I10746649, UTM18, E 674600, N 5164900, N46 36 54

 

Why I don't have the same thing ?

Thanks,

Matthieu

 

3 replies

debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • 648 replies
  • December 3, 2022

Hello @tanmat​,

The response from the service you're calling actually includes the control character \\x00 after N46 36 54 and W72 43 11. This causes the rest of the response to not be displayed within Data Inspector or Visual Preview.

nul (\\x00) control character in HTTP responseHowever, you can use a StringReplacer to replace these control characters and the rest of the HTTP response should appear.

In the StringReplacer, set the following parameters:

  • Mode: Replace Regular Expression
  • Text to Replace: \\x00
  • Replacement Text:

StringReplacer configuration: Replace Regular Expression mode, \\x00 as Text to Replace, and Replacement Text as empty string


  • Author
  • 5 replies
  • December 5, 2022

Hi @debbiatsafe​ 

 

It's work great,

 

Thanks a lot,

Have a nice day,

 

Matthieu


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • December 5, 2022

Hello @tanmat​,

The response from the service you're calling actually includes the control character \\x00 after N46 36 54 and W72 43 11. This causes the rest of the response to not be displayed within Data Inspector or Visual Preview.

nul (\\x00) control character in HTTP responseHowever, you can use a StringReplacer to replace these control characters and the rest of the HTTP response should appear.

In the StringReplacer, set the following parameters:

  • Mode: Replace Regular Expression
  • Text to Replace: \\x00
  • Replacement Text:

StringReplacer configuration: Replace Regular Expression mode, \\x00 as Text to Replace, and Replacement Text as empty string

Oh very nice!