I get a 400 erro on HTTPQueryInfoA.

I issue HttpQueryInfoA on a file named on the server as %.jpg. I can't see any packets going over to the  server. Does this mean Windows is returning the error? The same code works if the file is more normally named.
memorymatrixAsked:
Who is Participating?
 
Michael PfisterConnect With a Mentor Commented:
Http error 400: Bad Request
This is because % is the escape character and .jpg is not a valid escape code.

Try %25 instead:

%25.jpg

will get the info of %.jpg
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.