79367762

Date: 2025-01-18 18:39:52
Score: 2
Natty:
Report link

After tinkering and re-rereading documentation I found another header to pass to wikimedia which does change the output, confirming that my headers are being received correctly.

wikiheaders=Dict("User-Agent"=>"learning_julia_test(;)julia1_11","Accept-Encoding"=>"gzip")# for testing

When I pass "Accept Encoding" : "gzip" the file that is returned is in a gzip format which confirms wikimedia is correctly interpretting what I send.

Thank you @C3roe for what I consider to be a better and more universal approach of using a service like requestcatcher.com (which appears to be owned by a company called Omni) to test if my code was behaving as expected and not depending on the intended recepient for confirmation. In cases where each api get request might have a significant cost or a consequence, this would be be much more preferable.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Justworks