I'm having a rather nasty problem with the jquery post function, which is probably due to not understanding how it works correctly.
I have a function that needs to post some form information in a php script that I wrote, and that the script then runs swirling requests against the API to get around the cross-domain javascript policy. It seems to be working fine as long as it submits to "http", but when I submit it to "https", the form never submits.
I ran wirehark on my computer and it did not show traffic in the direction of the destination IP address until I used the url url. I have basic auth on the server, so I pass the user and password through the URL, but tested without it and got the same results.
Here is the broken code:
$j.post("https://<api user>:<password>@<ip>:444/ProxyScript.php", $j("#spoke_ticket").serialize(), function(msg) { log_status(msg); fade_status(); $j(':input','#createtheticket') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected'); });
Here is the working function:
$j.post("http://<other ip>/ProxyScript.php", $j("#spoke_ticket").serialize(), function(msg) { log_status(msg); fade_status(); $j(':input','#createtheticket') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected'); });
Any ideas as to why traffic is not being sent? Let me know if I left some key information or something else.
thanks for the help
Weston boone
source share